if (other instanceof TypeToNameMap) {
TypeToNameMap otherMap = (TypeToNameMap)other;
return myPatterns.equals(otherMap.myPatterns) && myNames.equals(otherMap.myNames);
}
return false;
<BUG>}
public int hashCode() {</BUG>
int code = 0;
for (String myPattern : myPatterns) {
code += myPattern.hashCode();

if (other instanceof TypeToNameMap) {
TypeToNameMap otherMap = (TypeToNameMap)other;
return myPatterns.equals(otherMap.myPatterns) && myNames.equals(otherMap.myNames);
}
return false;
}
@Override
public int hashCode() {
int code = 0;
for (String myPattern : myPatterns) {
code += myPattern.hashCode();
