fixed java-generic warnings