diff --git a/src/main/java/spoon/reflect/factory/TypeFactory.java b/src/main/java/spoon/reflect/factory/TypeFactory.java index 22032a23a97..58434220ae2 100644 --- a/src/main/java/spoon/reflect/factory/TypeFactory.java +++ b/src/main/java/spoon/reflect/factory/TypeFactory.java @@ -678,7 +678,7 @@ public void visitCtConstructor(CtConstructor c) { } } Visitor visitor = new Visitor(); - ((CtElement) formalTypeDeclarer).accept(visitor); + formalTypeDeclarer.accept(visitor); return visitor.adapter; }