mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DuplicateCondition: nested flipped binary expression test
This commit is contained in:
+9
@@ -64,4 +64,13 @@ public class DuplicateCondition {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void test(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m, int n, int o, int p) {
|
||||
if (<warning descr="Duplicate condition '(((a + b) + (c + d)) + ((e + f) + (g + h))) + (((i + j) + (k + l)) + ((m + n) + (o + p))) > 0'">(((a + b) + (c + d)) + ((e + f) + (g + h))) + (((i + j) + (k + l)) + ((m + n) + (o + p))) > 0</warning>) {
|
||||
System.out.println("one");
|
||||
}
|
||||
else if (<warning descr="Duplicate condition '(((p + o) + (n + m)) + ((l + k) + (j + i))) + (((h + g) + (f + e)) + ((d + c) + (b + a))) > 0'">(((p + o) + (n + m)) + ((l + k) + (j + i))) + (((h + g) + (f + e)) + ((d + c) + (b + a))) > 0</warning>) {
|
||||
System.out.println("two");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user