Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/useHashCode/beforeSimple2.java
Tagir Valeev 2770254f2f [java-inspections] IDEA-338114 Suggest to replace (int)(v ^ (v >>> 32)) with a Long.hashCode(v)
GitOrigin-RevId: 2d9591f9d9a558c4a61ac226556ef9f551d6e0c2
2023-11-15 21:43:17 +00:00

8 lines
197 B
Java

// "Replace with 'Long.hashCode()'" "true-preview"
public class Test {
long var = 1234567890123456789L;
public void testMethod() {
int result = (int<caret>)((var >>> (16+16)) ^ var);
}
}