We are using JDK1.7 only. Hence reverting to diamond operator. Sorry Prem, issue is from my IDE settings.