ArrayList toKeep = new ArrayList(); for (Iterator i = modifiers.iterator(); i.hasNext();) { Modifier modifier = (Modifier)i.next(); if (modifier.value != AUTOMATIC_FAIL && modifier.value != AUTOMATIC_SUCCESS) { toKeep.add(modifier); } } modifiers = toKeep; recalculate();
removeAutos(false);
    public void removeAutos() {        ArrayList toKeep = new ArrayList();        for (Iterator i = modifiers.iterator(); i.hasNext();) {            Modifier modifier = (Modifier)i.next();            if (modifier.value != AUTOMATIC_FAIL && modifier.value != AUTOMATIC_SUCCESS) {                toKeep.add(modifier);            }        }        modifiers = toKeep;        recalculate();    }