new file: ../../../main/java/de/dhbwstuttgart/typeinference/unify/model/hashKeyType.java

modified:   ../../resources/bytecode/javFiles/VectorSuper.jav
This commit is contained in:
Martin Plümicke 2019-01-16 10:27:15 +01:00
parent b3622df2fd
commit 8c517e7f4a
2 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,25 @@
package de.dhbwstuttgart.typeinference.unify.model;
public class hashKeyType {
UnifyType realType;
hashKeyType(UnifyType realType) {
this.realType= realType;
}
@Override
public boolean equals(Object obj) {
if (obj instanceof hashKeyType) {
return realType.equals(((hashKeyType)obj).realType);
}
else
{
return false;
}
}
@Override
public int hashCode() {
return realType.hashCode();
}
}

View File

@ -4,7 +4,7 @@ import java.lang.Integer;
public class VectorSuper {
m(x){
Integer y;
Integer y = 1;
x.addElement(y);
//return x;
}