int () { Integer i = 1; i = <warning descr="Object instantiation inside 'hashCode()' (autoboxing)">128</warning>; Short.valueOf((short) 1); <warning descr="Object instantiation inside 'hashCode()'">Short.valueOf((short) 128)</warning>; Byte.valueOf((byte) 1); // nope Long.valueOf(1); <warning descr="Object instantiation inside 'hashCode()'">Long.valueOf(128)</warning>; Boolean.valueOf(true); // nope Character.valueOf('a'); <warning descr="Object instantiation inside 'hashCode()'">Character.valueOf('П')</warning>; Float.<warning descr="Object instantiation inside 'hashCode()'">valueOf</warning>((float) 1.0); Double.<warning descr="Object instantiation inside 'hashCode()'">valueOf</warning>(1.0); <warning descr="Object instantiation inside 'hashCode()' (autoboxing)">i</warning>++; int j = 1; j++; int[] is = <warning descr="Object instantiation inside 'hashCode()'">{127}</warning>; Integer.valueOf(is[0]); is = new <warning descr="Object instantiation inside 'hashCode()'">int</warning>[1]; is[0] = 1000; <warning descr="Object instantiation inside 'hashCode()'">Integer.valueOf(is[0])</warning>; int hashCode = 7; java.util.Optional.<warning descr="Object instantiation inside 'hashCode()'">of</warning>("foo"); for (Object fooElement : <warning descr="Object instantiation inside 'hashCode()' (iterator)">fooList</warning>) { hashCode = 31 * hashCode + (fooElement == null ? 0 : fooElement.hashCode()); } Pattern.<warning descr="Object instantiation inside 'hashCode()'">compile</warning>("regex"); return hashCode; }