Skip to content

Commit 2e5a7f8

Browse files
cigalygavinking
authored andcommitted
HHH-19301 Importing element FQCN in org.hibernate.processor.annotation.AnnotationMetaEntity constructor
Not importing if FQCN ends with dollar sign
1 parent af1d5e9 commit 2e5a7f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java

+3
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ public AnnotationMetaEntity(
184184
importContext.importType(
185185
getGeneratedClassFullyQualifiedName( element, getPackageName( context, element ),
186186
jakartaDataStaticModel ) );
187+
if ( !element.getQualifiedName().toString().endsWith( "$" ) ) {
188+
importContext.importType( element.getQualifiedName().toString() );
189+
}
187190
}
188191

189192
public static AnnotationMetaEntity create(TypeElement element, Context context, @Nullable AnnotationMetaEntity parent) {

0 commit comments

Comments
 (0)