mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Do not complain about referencing test-only class on anonymous classes
This functionality is covered by checking PsiCallExpression elements
This commit is contained in:
@@ -70,4 +70,17 @@
|
||||
<description>Test-only method is called in production code</description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>B.java</file>
|
||||
<line>22</line>
|
||||
<package><default></package>
|
||||
<description>Test-only class is referenced in production code</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>B.java</file>
|
||||
<line>22</line>
|
||||
<package><default></package>
|
||||
<description>Test-only method is called in production code</description>
|
||||
</problem>
|
||||
|
||||
</problems>
|
||||
|
||||
@@ -18,5 +18,7 @@ public class B {
|
||||
System.out.println(a.field);
|
||||
System.out.println(A.staticField);
|
||||
System.out.println(staticImportedField);
|
||||
|
||||
A b = new A() { };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user