Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
404c2bc8
Commit
404c2bc8
authored
6 years ago
by
peter
1
Browse files
Options
Download
Email Patches
Plain Diff
IDEA-194439 Regression: Enum.toString() should not be externally annotated as @NotNull
parent
f1f0a5d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/java-tests/testData/inspection/nullableProblems/NonAnnotatedSiblingOverriding.java
+5
-1
...ction/nullableProblems/NonAnnotatedSiblingOverriding.java
java/jdkAnnotations/java/lang/annotations.xml
+0
-3
java/jdkAnnotations/java/lang/annotations.xml
with
5 additions
and
4 deletions
+5
-4
java/java-tests/testData/inspection/nullableProblems/NonAnnotatedSiblingOverriding.java
+
5
-
1
View file @
404c2bc8
...
...
@@ -23,4 +23,8 @@ interface NonNullEnum {
String
name
();
}
enum
NonNullEnumImpl
implements
NonNullEnum
{}
\ No newline at end of file
enum
NonNullEnumImpl
implements
NonNullEnum
{
a
;
public
String
toString
()
{
return
null
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
java/jdkAnnotations/java/lang/annotations.xml
+
0
-
3
View file @
404c2bc8
...
...
@@ -86,9 +86,6 @@
<annotation
name=
'org.jetbrains.annotations.NotNull'
/>
</item>
<item
name=
'java.lang.Enum java.lang.String name()'
>
<annotation
name=
'org.jetbrains.annotations.NotNull'
/>
</item>
<item
name=
'java.lang.Enum java.lang.String toString()'
>
<annotation
name=
'org.jetbrains.annotations.NotNull'
/>
</item>
<item
name=
'java.lang.Integer int bitCount(int)'
>
...
...
This diff is collapsed.
Click to expand it.
小 白蛋
@baidan
mentioned in commit
a97a4384
·
2 years ago
mentioned in commit
a97a4384
mentioned in commit a97a4384e93d2cf98abcf709a519bbc197bbd341
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help