public boolean differs ( MethodInfo oldInfo , MethodInfo newInfo ) { if ( Tools . isMethodAccessChange ( oldInfo . getAccess ( ) , newInfo . getAccess ( ) ) ) return true ; if ( oldInfo . getExceptions ( ) == null || newInfo . getExceptions ( ) == null ) { if ( oldInfo . getExceptions ( ) != newInfo . getExceptions ( ) ) return true ; } else { final Set < String > oldExceptions = new HashSet ( Arrays . asList ( oldInfo . getExceptions ( ) ) ) ; final Set < String > newExceptions = new HashSet ( Arrays . asList ( newInfo . getExceptions ( ) ) ) ; if ( ! oldExceptions . equals ( newExceptions ) ) return true ; } return false ; }
Check if there is a change between two versions of a method . Returns true if the access flags differ or if the thrown exceptions differ .