Removed diamond instantiation as only available in newer versions of the JRE