@Override
    public void visitCode(Code obj) {
        stack.resetForMethodEntry(this);
        localLabels.clear();
        super.visitCode(obj);
        for (SourceLineAnnotation sla : localLabels.values()) {
            BugInstance bug = new BugInstance(this, BugType.S508C_NO_SETLABELFOR.name(), NORMAL_PRIORITY).addClass(this).addMethod(this);

            if (sla != null) {
                bug.addSourceLine(sla);
            }

            bugReporter.reportBug(bug);
        }
    }
@ Override public void visitCode ( Code obj ) { stack . resetForMethodEntry ( this ) ; localLabels . clear ( ) ; super . visitCode ( obj ) ; for ( SourceLineAnnotation sla : localLabels . values ( ) ) { BugInstance bug = new BugInstance ( this , BugType . S508C_NO_SETLABELFOR . name ( ) , NORMAL_PRIORITY ) . addClass ( this ) . addMethod ( this ) ; if ( sla != null ) { bug . addSourceLine ( sla ) ; } bugReporter . reportBug ( bug ) ; } }
implements the visitor to reset the stack

@param obj
the context object for the currently visited code block