[type] minor improve of type transformer

This commit is contained in:
Bob Pan 2016-03-04 21:05:33 +08:00
parent 8e58b0eb40
commit d6383b7d1d

View File

@ -223,6 +223,9 @@ public class TypeTransformer implements Transformer {
while (x.next != null) {
x = x.next;
}
if (x != this) {
this.next = x;
}
return x;
}
@ -280,8 +283,9 @@ public class TypeTransformer implements Transformer {
}
public boolean updateTypeClass(TypeClass clz) {
TypeClass merged = TypeClass.merge(this.getClz(), clz);
if (merged == this.getClz()) {
TypeClass thizClz = this.getClz();
TypeClass merged = TypeClass.merge(thizClz, clz);
if (merged == thizClz) {
return false;
}
this.setClz(merged);