private boolean isInherited ( Method m ) throws ClassNotFoundException { JavaClass [ ] infs = javaClass . getAllInterfaces ( ) ; for ( JavaClass inf : infs ) { if ( hasMethod ( inf , m ) ) { return true ; } } JavaClass [ ] sups = javaClass . getSuperClasses ( ) ; for ( JavaClass sup : sups ) { if ( hasMethod ( sup , m ) ) { return true ; } } return false ; }
looks to see if this method is derived from a super class . If it is we don t want to report on it as that would entail changing a whole hierarchy