Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/Boxing128.java
T

11 lines
286 B
Java

class Foo {
public void foo() {
Integer a = 128;
Integer b = (int) a;// cast is necessary because new object is created
Integer c = 128;
System.out.println(a == b);
System.out.println(<warning descr="Condition 'a == c' is always 'false'">a == c</warning>);
}
}