void (String[] args) { final int i = 2; final int j = <warning descr="'i + 0' can be replaced with 'i'">i + 0</warning>; System.out.println(j); int k = <warning descr="'0+j' can be replaced with 'j'">0+j</warning>; System.out.println(k); k = <warning descr="'j - 0' can be replaced with 'j'">j - 0</warning>; System.out.println(k); k = <warning descr="'0 - j' can be replaced with '- j'">0 - j</warning>; System.out.println(k); k = j * ZERO_CONSTANT; System.out.println(k); k = j * ONE_CONSTANT; System.out.println(k); k = <warning descr="'j / 1' can be replaced with 'j'">j / 1</warning>; k = 0/0; // don't warn on division by zero System.out.println(k); String string = "foo" + 0; k = <warning descr="'j%1' can be replaced with '0'">j%1</warning>; System.out.println(k); if(k<=Integer.MAX_VALUE) { } if(k>=Integer.MIN_VALUE) { } if(k>Integer.MAX_VALUE) { } if(k<Integer.MIN_VALUE) { } if(Integer.MAX_VALUE >= k) { } if(Integer.MIN_VALUE <= k) { } if(Integer.MAX_VALUE < k) { } if(Integer.MIN_VALUE > k) { } }