mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
visibility inspection: do not suggest private for constants used in class modifier lists and for inner classes used in extends/implements (IDEA-81161)
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>ThisClass.java</file>
|
||||
<line>5</line>
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Declaration access can be weaker</problem_class>
|
||||
<hints>
|
||||
<hint value="packageLocal" />
|
||||
</hints>
|
||||
<description>Can be package local</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>ThisClass.java</file>
|
||||
<line>4</line>
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Declaration access can be weaker</problem_class>
|
||||
<hints>
|
||||
<hint value="packageLocal" />
|
||||
</hints>
|
||||
<description>Can be package local</description>
|
||||
</problem>
|
||||
</problems>
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import java.util.ArrayList;
|
||||
@SuppressWarnings(ThisClass.PUBLICFINALNAME)
|
||||
public class ThisClass extends ArrayList<ThisClass.FF> {
|
||||
public static final String PUBLICFINALNAME = "stuff";
|
||||
public static class FF {}
|
||||
|
||||
public static void main(String[] args) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user