mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 08:45:34 +07:00
IDEA-66134 Inspection "Constant conditions & exceptions": ignore boolean named constants
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user