can allowing diamonds be disabled in language level 8?


IN language level 7 java allows you to instantiate and object without re-specifying the data types from the declaration.

ie HashMap<String, Integer> map = new HashMap<>()

If the instantiation happens far from the declaration, this is a royal pain when reading code and not knowing the what the data types for the contents of the map should be.  we would like to configure intellij so (like language level 6) intellij continues to flag these as errors forcing the developer to supply them while STILL setting the project language level to 8 (because we use Lamda's and such as well)

So... Is it possible to disable the allowance of empty diamonds while still setting the project to language level 8?

1 comment
Comment actions Permalink

It's not possible, there is a related request:


Please sign in to leave a comment.