new file: ../../../main/java/de/dhbwstuttgart/typeinference/unify/model/hashKeyType.java
modified: ../../resources/bytecode/javFiles/VectorSuper.jav
This commit is contained in:
parent
b3622df2fd
commit
8c517e7f4a
@ -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();
|
||||
}
|
||||
}
|
@ -4,7 +4,7 @@ import java.lang.Integer;
|
||||
public class VectorSuper {
|
||||
|
||||
m(x){
|
||||
Integer y;
|
||||
Integer y = 1;
|
||||
x.addElement(y);
|
||||
//return x;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user