Commit dbfa1895 authored by Tagir Valeev's avatar Tagir Valeev
Browse files

Testcase for IDEA-198132 Condition is always 'false' false positive

The problem was actually fixed in 5a8e6d64
parent cf71c733
Branches unavailable Tags unavailable
No related merge requests found
Showing with 20 additions and 0 deletions
+20 -0
import java.util.*;
class Testcase {
private static final Long TEST = new Long(1234);
public static void main(String[] args) {
final Map<String, Long> hashMap = new HashMap<>();
hashMap.put("Hello", TEST);
Long l = hashMap.get("Hello");
if(l != null) {
if(l == TEST) {
System.out.println("Out");
}
}
}
}
\ No newline at end of file
......@@ -639,4 +639,5 @@ public class DataFlowInspectionTest extends DataFlowInspectionTestCase {
public void testVoidIsAlwaysNull() { doTest(); }
public void testStringEquality() { doTest(); }
public void testAssignmentFieldAliasing() { doTest(); }
public void testNewBoxedNumberEquality() { doTest(); }
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment