[java-inspections] UseHashCodeMethodInspection: support double type

Also: fix comment processing
Improvement of IDEA-338114

GitOrigin-RevId: 87d057ccbea4262c40e2717c2ea3c004ac9865b0
This commit is contained in:
Tagir Valeev
2023-12-11 17:55:54 +01:00
committed by intellij-monorepo-bot
parent e356e99136
commit 6e1d684df0
14 changed files with 136 additions and 29 deletions

View File

@@ -0,0 +1,7 @@
// "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)));
}
}