Hello everyone,
The following method executes correctly but produces an unchecked warning:
[unchecked] unchecked call to isAssignableFrom(java.lang.Class<?>) as a member of the raw type java.lang.Class
private static boolean ImplementsInterface (
Class TypeClass,
Class Int )
{
Class Interfaces[];
Interfaces = TypeClass.getInterfaces ();
for ( Class i:Interfaces )
if ( Int.isAssignableFrom(i) )
return true;
return false;
}
TypeClass is a class and
Int is an interface.
Thank you