IDEA-66134 Inspection "Constant conditions & exceptions": ignore boolean named constants

This commit is contained in:
peter
2015-07-10 20:38:55 +02:00
parent 99f343707f
commit da6bf872ab
2 changed files with 32 additions and 17 deletions
@@ -11,4 +11,14 @@ class Fun {
System.out.println();
}
}
private static final boolean FRONT_DRAW_GRID_LINES = true;
private static final boolean BACK_DRAW_GRID_LINES = true;
void smthComplex(boolean isFrontPage) {
if (isFrontPage && FRONT_DRAW_GRID_LINES || !isFrontPage && BACK_DRAW_GRID_LINES) {
System.out.println();
}
}
}