为什么我会从IntelliJ中的“NullableProblems”检查中收到警告:publicclassTestimplementsComparable{@OverridepublicintcompareTo(Testo){return0;}}我正在使用IntelliJ14.1.4并使用Java1.7进行编译截图:在参数前添加@NotNull没有帮助: 最佳答案 来自Comparable.compareTo:@throwsNullPointerExceptionifthespecifiedobjectisnull所以Intelli
为什么我会从IntelliJ中的“NullableProblems”检查中收到警告:publicclassTestimplementsComparable{@OverridepublicintcompareTo(Testo){return0;}}我正在使用IntelliJ14.1.4并使用Java1.7进行编译截图:在参数前添加@NotNull没有帮助: 最佳答案 来自Comparable.compareTo:@throwsNullPointerExceptionifthespecifiedobjectisnull所以Intelli