protected boolean isMutator ( Method m ) { // JBAS-4473, look for set<name>() String name = m . getName ( ) ; if ( ! ( name . startsWith ( "set" ) && name . length ( ) > "set" . length ( ) ) ) return false ; if ( m . getReturnType ( ) != Void . TYPE ) return false ; if ( m . getParameterTypes ( ) . length != 1 ) return false ; return hasNonAppExceptions ( m ) ; }
Check if a method is a mutator .