forked from JavaTX/JavaCompilerCore
stricter equality condition for typeParams
This commit is contained in:
parent
fb82d8c3eb
commit
fd5902f6dd
@ -8,7 +8,7 @@ public final class ExtendsType extends Type {
|
|||||||
private Type extendedType;
|
private Type extendedType;
|
||||||
|
|
||||||
public ExtendsType(Type extendedType) {
|
public ExtendsType(Type extendedType) {
|
||||||
super("? extends " + extendedType.getTypeParams(), extendedType.getTypeParams());
|
super("? extends " + extendedType.getName(), extendedType.getTypeParams());
|
||||||
this.extendedType = extendedType;
|
this.extendedType = extendedType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,8 +61,14 @@ public final class TypeParams implements Iterable<Type>{
|
|||||||
|
|
||||||
TypeParams other = (TypeParams) obj;
|
TypeParams other = (TypeParams) obj;
|
||||||
|
|
||||||
// TODO
|
if(other.size() != this.size())
|
||||||
return other.size() == this.size();
|
return false;
|
||||||
|
|
||||||
|
for(int i = 0; i < this.size(); i++)
|
||||||
|
if(!(this.get(i).equals(other.get(i))))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user