mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 02:15:59 +07:00
13 lines
310 B
Java
13 lines
310 B
Java
import org.jetbrains.annotations.*;
|
|
class TestIDEAWarn {
|
|
void method(@Nullable MyEnum e) {
|
|
if (e != MyEnum.foo) {return;}
|
|
System.out.println(e.hashCode());
|
|
}
|
|
void method2(@Nullable MyEnum e) {
|
|
if (e == MyEnum.foo) {
|
|
System.out.println(e.hashCode());
|
|
}
|
|
}
|
|
}
|
|
enum MyEnum { foo, bar } |