diff --git a/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/util/TypeRenderingVisitor.java b/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/util/TypeRenderingVisitor.java index 5652b37991..8654c95d84 100644 --- a/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/util/TypeRenderingVisitor.java +++ b/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/util/TypeRenderingVisitor.java @@ -6,7 +6,9 @@ */ package org.hibernate.jpamodelgen.util; +import java.util.HashSet; import java.util.List; +import java.util.Set; import javax.lang.model.element.Element; import javax.lang.model.element.ElementKind; import javax.lang.model.element.TypeParameterElement; @@ -30,6 +32,7 @@ import javax.lang.model.util.SimpleTypeVisitor8; public final class TypeRenderingVisitor extends SimpleTypeVisitor8 { private final StringBuilder sb = new StringBuilder(); + private final Set visitedTypeVariables = new HashSet<>(); private TypeRenderingVisitor() { } @@ -129,9 +132,10 @@ public final class TypeRenderingVisitor extends SimpleTypeVisitor8> E getMyEnum() { + return null; + } +}