fixed warnings

This commit is contained in:
Ziver Koc 2010-08-14 15:38:56 +00:00
parent 2693a9eb4e
commit 93b14283c2
5 changed files with 20 additions and 20 deletions

View file

@ -97,9 +97,8 @@ public class Converter {
* @param interf the interface to look for
* @return true if the interface is implemented else false
*/
@SuppressWarnings("unchecked")
public static boolean isInstanceOf(Object object, Class interf){
Class[] objectInterf = object.getClass().getInterfaces();
public static boolean isInstanceOf(Object object, Class<?> interf){
Class<?>[] objectInterf = object.getClass().getInterfaces();
for(int i=0; i<objectInterf.length ;i++){
if(objectInterf[i] == interf){
return true;