mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
[java-inspections] UseHashCodeMethodInspection: fix inspection name, support boxed Long type
IDEA-338114, IDEA-339366 GitOrigin-RevId: 5e51384d160e29f3c81b99c9c50260cb883d9c46
This commit is contained in:
committed by
intellij-monorepo-bot
parent
13239eecf6
commit
b7d4e8a3b2
@@ -0,0 +1,9 @@
|
||||
// "Replace with 'Long.hashCode()'" "true-preview"
|
||||
public class Test {
|
||||
Long var = 1234567890123456789L;
|
||||
Long var1 = 1234567890123456784L;
|
||||
|
||||
public void testMethod(boolean f) {
|
||||
int result = (int<caret>)((f ? var : var1) ^ ((f ? var : var1) >>> /*shift amount*/ 32));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user