mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
do not flag dead code if custom JUnit runner is used (IDEA-25444)
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
</problems>
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
interface Interface {
|
||||
int[] getField();
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
public class Test implements Interface{
|
||||
public static int[] myField = new int[] {init()};
|
||||
|
||||
public static int init() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static void main(String[] args){
|
||||
Interface i = new Test();
|
||||
System.out.println(i.getField());
|
||||
}
|
||||
|
||||
public int[] getField() {
|
||||
return myField;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user