HashMap<Integer, Integer> aGenericMap = new HashMap<Integer, Integer>();
Integer x = aGenericMap.get("HeyImInvalid");
In my previous version of Eclipse, the code above was marked as a compile error (as expected). In Eclipse 2019-09 R (4.13.0), this doesn't even raise a warning let alone a compile error.
How do I get Eclipse to mark this as a compile error?
It's a real pain now because I'm using enums (as opposed to a String in the example above) and sometimes I forget to add ".value" to get the enum int/Integer value, a nasty bug that should show up at compile time and not runtime.