assert from != this;
myPatterns.clear();
myPatterns.addAll(from.myPatterns);
myNames.clear();
myNames.addAll(from.myNames);
<BUG>}
public boolean equals(Object other) {</BUG>
if (other instanceof TypeToNameMap) {
TypeToNameMap otherMap = (TypeToNameMap)other;
return myPatterns.equals(otherMap.myPatterns) && myNames.equals(otherMap.myNames);

assert from != this;
myPatterns.clear();
myPatterns.addAll(from.myPatterns);
myNames.clear();
myNames.addAll(from.myNames);
}
@Override
public boolean equals(Object other) {
if (other instanceof TypeToNameMap) {
TypeToNameMap otherMap = (TypeToNameMap)other;
return myPatterns.equals(otherMap.myPatterns) && myNames.equals(otherMap.myNames);
