mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
return value is the same const: do not process returns of containing methods IDEA-204977 (add test)
This commit is contained in:
@@ -6,5 +6,12 @@
|
||||
<problem_class>Method returns the same value</problem_class>
|
||||
<description>Method always returns <code>0</code></description>
|
||||
</problem>
|
||||
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>10</line>
|
||||
<problem_class>Method returns the same value</problem_class>
|
||||
<description>Method always returns <code>0</code></description>
|
||||
</problem>
|
||||
</problems>
|
||||
|
||||
|
||||
@@ -4,7 +4,17 @@ class Test {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void test() {
|
||||
Comparator<String> cmp = new Comparator<String>() {
|
||||
@Override
|
||||
public int compare(String a, String b) {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new Test().xxx());
|
||||
new Test().test();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user