Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/DoubleArrayDiff.java
Tagir Valeev cde4e9cab2 [java-dfa] Properly cast primitive type in getAdvancedExpressionDfaValue
Fixes IDEA-252586 Wrong 'condition is always true' when element of double array is implicitly converted from int

GitOrigin-RevId: 36cf865d5d9d88c14d2f3236a3d068555f7ca216
2020-10-12 10:29:28 +00:00

6 lines
166 B
Java

public class DoubleArrayDiff {
public static void test(int[] a, int[] b) {
double[] d1 = new double[]{b[0] - a[0], b[1] - a[1]};
if (d1[1] != 0.0) { }
}
}