I am getting this error while trying to compile some simple source code in idea ide.
java: diamond operator is not supported in -source 1.6 (use -source 7 or
Make sure that, in the Project Structure page, you have set your project language level to 7.0.
After you select this, you will have to reopen your project, but then your diamond operators should compile.