fix diamond operator is not supported in -source 1.5