Make ClassInfo.Traversal actually use the provided traverse parameter

This commit is contained in:
simon816 committed 2015-03-23 19:21:52 +00:00
1 parent ffb78cdea8
commit 34c6e62c8f
2 files changed
+2 -2

No files matched your search

@@ -93,7 +93,7 @@ class ClassInfo extends TreeInfo {
private Traversal(Traversal next, boolean traverse) {
this.next = next != null ? next : this;
this.traverse = true;
this.traverse = traverse;
}
public Traversal next() {
@@ -268,7 +268,7 @@ class MixinInfo extends TreeInfo implements Comparable<MixinInfo>, IMixinInfo {
continue;
}
if (!targetClass.hasSuperClass(classNode.superName, ClassInfo.Traversal.NONE)) {
if (!targetClass.hasSuperClass(classNode.superName, ClassInfo.Traversal.IMMEDIATE)) {
throw new InvalidMixinException(this, "Super class '" + classNode.superName.replace('/', '.') + "' of " + this.name
+ " was not found in the hierarchy of target class '" + targetClass + "'");
}