public void setComplete(boolean complete) {
        int fields = 0;
        int removed = 0;
        int retained = 0;
        this.complete = complete;
        if (isComplete()) {
            for (Iterator<Map.Entry<XField, OpcodeStack.Item>> i = summary.entrySet().iterator(); i.hasNext();) {
                Map.Entry<XField, OpcodeStack.Item> entry = i.next();
                XField f = entry.getKey();
                if ( AnalysisContext.currentXFactory().isReflectiveClass(f.getClassDescriptor())) {
                    i.remove();
                    removed++;
                    continue;
                }
                OpcodeStack.Item defaultItem = new OpcodeStack.Item(f.getSignature());
                fields++;
                Item value = entry.getValue();
                value.makeCrossMethod();
                if (defaultItem.equals(value)) {
                    i.remove();
                    removed++;
                } else {
                    retained++;
                }
            }
        }
    }
public void setComplete ( boolean complete ) { int fields = 0 ; int removed = 0 ; int retained = 0 ; this . complete = complete ; if ( isComplete ( ) ) { for ( Iterator < Map . Entry < XField , OpcodeStack . Item > > i = summary . entrySet ( ) . iterator ( ) ; i . hasNext ( ) ; ) { Map . Entry < XField , OpcodeStack . Item > entry = i . next ( ) ; XField f = entry . getKey ( ) ; if ( AnalysisContext . currentXFactory ( ) . isReflectiveClass ( f . getClassDescriptor ( ) ) ) { i . remove ( ) ; removed ++ ; continue ; } OpcodeStack . Item defaultItem = new OpcodeStack . Item ( f . getSignature ( ) ) ; fields ++ ; Item value = entry . getValue ( ) ; value . makeCrossMethod ( ) ; if ( defaultItem . equals ( value ) ) { i . remove ( ) ; removed ++ ; } else { retained ++ ; } } } }
@param complete
The complete to set.