Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/useHashCode/beforeNoDouble.java
Tagir Valeev 6e1d684df0 [java-inspections] UseHashCodeMethodInspection: support double type
Also: fix comment processing
Improvement of IDEA-338114

GitOrigin-RevId: 87d057ccbea4262c40e2717c2ea3c004ac9865b0
2023-12-11 21:37:14 +00:00

8 lines
223 B
Java

// "Replace with 'Long.hashCode()'" "true-preview"
public class Test {
void test(double d) {
long l = Double.doubleToLongBits(d);
System.out.println((int) (l ^ (l<caret> >>> 32)));
System.out.println(l);
}
}