@ Override public void visitCode ( Code obj ) { Method m = getMethod ( ) ; if ( ( ! m . isStatic ( ) || ! Values . STATIC_INITIALIZER . equals ( m . getName ( ) ) ) && ( ! m . getName ( ) . contains ( "enum constant" ) ) ) { // a findbugs thing!! byte [ ] code = obj . getCode ( ) ; if ( code . length >= UNJITABLE_CODE_LENGTH ) { bugReporter . reportBug ( new BugInstance ( this , BugType . UJM_UNJITABLE_METHOD . name ( ) , NORMAL_PRIORITY ) . addClass ( this ) . addMethod ( this ) . addString ( "Code Bytes: " + code . length ) ) ; } } }
implements the visitor to look at the size of the method . static initializer are ignored as these will only be executed once anyway .