diff --git a/java/com/google/turbine/processing/TurbineElement.java b/java/com/google/turbine/processing/TurbineElement.java index aa70f1cb..b88ac10f 100644 --- a/java/com/google/turbine/processing/TurbineElement.java +++ b/java/com/google/turbine/processing/TurbineElement.java @@ -50,9 +50,7 @@ import com.google.turbine.model.Const; import com.google.turbine.model.Const.ArrayInitValue; import com.google.turbine.model.TurbineFlag; -import com.google.turbine.tree.Tree; import com.google.turbine.tree.Tree.MethDecl; -import com.google.turbine.tree.Tree.TyDecl; import com.google.turbine.tree.Tree.VarDecl; import com.google.turbine.type.AnnoInfo; import com.google.turbine.type.Type; @@ -266,22 +264,9 @@ public TypeMirror get() { case CLASS: case ENUM: case RECORD: - if (info.superclass() != null) { + if (info.superClassType() != null) { return factory.asTypeMirror(info.superClassType()); } - if (info instanceof SourceTypeBoundClass) { - // support simple names for stuff that doesn't exist - TyDecl decl = ((SourceTypeBoundClass) info).decl(); - if (decl.xtnds().isPresent()) { - ArrayDeque flat = new ArrayDeque<>(); - for (Tree.ClassTy curr = decl.xtnds().get(); - curr != null; - curr = curr.base().orElse(null)) { - flat.addFirst(curr.name()); - } - return factory.asTypeMirror(ErrorTy.create(flat)); - } - } return factory.noType(); case INTERFACE: case ANNOTATION: