Community
Participate
Working Groups
Build id: I20100608-0911 Hi, if call "intValue()" method in the example below, i get a warning/error, but if i use autoboxing, i don't. Could you please fix it? public class AutoboxingNull { public int foo(Integer i) { if (i == null) return i.intValue(); // i can only be null return 0; } public int bar(Integer i) { if (i == null) return i; // no error or warning return 0; } }
This is same as bug 319201. *** This bug has been marked as a duplicate of bug 319201 ***
Verified.