Code Smell: Replace the type specification in this constructor call with the diamond operator ("<>"). (sonar.java.source not set. Assuming 7 or greater.) (squid:S2293)
See it in SonarQube
I get issues like this on one module in our codebase which is Java language level level 6. Java language level 6 doesn’t support the diamond operator. Most of the modules are Java language level 8.
How to handle Java version dependent code smells in mixed version project?