mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-23 18:03:06 +07:00
24 lines
505 B
Java
24 lines
505 B
Java
class Fun {
|
|
public static final boolean isDebug = true;
|
|
|
|
void foo() {
|
|
if (isDebug) {
|
|
System.out.println();
|
|
}
|
|
}
|
|
void fooNegated() {
|
|
if (!isDebug) {
|
|
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();
|
|
}
|
|
}
|
|
|
|
} |