void () { final int x = (3 + 4)*5; // no warn final int q = <warning descr="Parentheses around '(3 + 4)' are unnecessary">(3 + 4)</warning>-5; // warn final int p = 3 + <warning descr="Parentheses around '(4-5)' are unnecessary">(4-5)</warning>; // warn! final int y = 3 + <warning descr="Parentheses around '(4*5)' are unnecessary">(4*5)</warning>; // warn final int z = 3 + <warning descr="Parentheses around '(4*(3*5))' are unnecessary">(4*<warning descr="Parentheses around '(3*5)' are unnecessary">(3*5)</warning>)</warning>; // 2 warnings final int k = 4 * <warning descr="Parentheses around '(3 * 5)' are unnecessary">(3 * 5)</warning>; // warn final int hash = <warning descr="Parentheses around '((this).hashCode())' are unnecessary">(<warning descr="Parentheses around '(this)' are unnecessary">(this)</warning>.hashCode())</warning>; // 2 warnings final int hash2 = <warning descr="Parentheses around '((\"x\" + \"y\").hashCode())' are unnecessary">(("x" + "y").hashCode())</warning>; // 1 warning List list = new ArrayList(); <warning descr="Parentheses around '(list.subList(1, 2))' are unnecessary">(list.subList(1, 2))</warning>.get(0); // warn }