Community
Participate
Working Groups
Build Identifier: 20100218-1602 Eclipse issues a warning about a redundant null check for the following code, at line 5: public static X getX (String name) { X x = map.get(name); if (x == null) { synchronized (x) { if (x == null) { // wrong warning x = new X(); map.put(name, x); } } } return x; } Reproducible: Always
My apologies, I had a mistake in the code sample.
Verified for 3.7 M5 using build id: I20110124-1800