Hello,
I would like to just let you know that in the newest version of SonarLint in squid:S1640 rule, in compiant solution example I see
EnumMap<COLOR, String> moodMap = new EnumMap<COLOR, String> (COLOR.class);
which is in fact still not-compliant to standard rules (it violates squid:S2293). Better would be to use here diamond operator (at least in “compliant” solution).