fixed warnings
This commit is contained in:
parent
2693a9eb4e
commit
93b14283c2
5 changed files with 20 additions and 20 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue