mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
report non-annotated constructor parameter for final @Nullable/@NotNull fields
This commit is contained in:
@@ -62,4 +62,12 @@
|
||||
<description>Constructor parameter for @NotNull field might be annotated @NotNull itself</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>63</line>
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">@NotNull/@Nullable problems</problem_class>
|
||||
<description>Constructor parameter for @NotNull field might be annotated @NotNull itself</description>
|
||||
</problem>
|
||||
|
||||
|
||||
</problems>
|
||||
|
||||
+9
@@ -55,4 +55,13 @@ class D {
|
||||
D(long l) {
|
||||
myL = l;
|
||||
}
|
||||
}
|
||||
|
||||
class E {
|
||||
final @NotNull C c;
|
||||
|
||||
E(C c) {
|
||||
this.c = c;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user