@ Override public void visitClassContext ( ClassContext classContext ) { // TODO: Look at method calls in a finally block to see if they throw // exceptions // : and those exceptions are not caught in the finally block // : Only do it if effort is on, ie: boolean fullAnalysis = // AnalysisContext.currentAnalysisContext().getBoolProperty(FindBugsAnalysisFeatures.INTERPROCEDURAL_ANALYSIS_OF_REFERENCED_CLASSES); try { int majorVersion = classContext . getJavaClass ( ) . getMajor ( ) ; if ( majorVersion >= Const . MAJOR_1_4 ) { fbInfo = new ArrayList <> ( ) ; super . visitClassContext ( classContext ) ; } } finally { fbInfo = null ; } }
overrides the visitor to check for java class version being as good or better than 1 . 4