"warning: [rawtypes] found raw type: Class" will not compile under java 7