import java.io.DataInputStream;
import java.io.IOException;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
private Member matchingSignature;
private ResolvedMember resolvedSignature;
protected final Shadow enclosingShadow;
- protected List mungers = new ArrayList(1);
+ protected List mungers = Collections.EMPTY_LIST;
public int shadowId = nextShadowID++; // every time we build a shadow, it gets a new id
public void addMunger(ShadowMunger munger) {
- if (checkMunger(munger)) this.mungers.add(munger);
+ if (checkMunger(munger)) {
+ if (mungers==Collections.EMPTY_LIST) mungers = new ArrayList();
+ this.mungers.add(munger);
+ }
}
public final void implement() {