[java-inspections] UseHashCodeMethodInspection: fix inspection name, support boxed Long type

IDEA-338114, IDEA-339366

GitOrigin-RevId: 5e51384d160e29f3c81b99c9c50260cb883d9c46
This commit is contained in:
Tagir Valeev
2023-12-01 15:37:22 +01:00
committed by intellij-monorepo-bot
parent 13239eecf6
commit b7d4e8a3b2
6 changed files with 42 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
// "Replace with 'Long.hashCode()'" "true-preview"
public class Test {
Long var = 1234567890123456789L;
public void testMethod() {
int result = (int<caret>)(var ^ (var >>> /*shift amount*/ 32));
}
}