public synchronized void add ( VisitState visitState ) { final boolean wasEntirelyBroken = isEntirelyBroken ( ) ; if ( visitState . lastExceptionClass != null ) brokenVisitStates ++ ; visitStates . add ( visitState ) ; assert brokenVisitStates <= visitStates . size ( ) ; if ( wasEntirelyBroken && ! isEntirelyBroken ( ) ) workbenchBroken . decrementAndGet ( ) ; if ( ! wasEntirelyBroken && isEntirelyBroken ( ) ) workbenchBroken . incrementAndGet ( ) ; }
Adds the given visit state to the visit - state queue .