Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/useHashCode/beforeDoubleBoxed.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

7 lines
209 B
Java

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