Java7 generic declaration used