diff --git a/tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMeta.java b/tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMeta.java index 9b2153e6b9..6175b941d4 100644 --- a/tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMeta.java +++ b/tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMeta.java @@ -71,10 +71,10 @@ public abstract class AnnotationMeta implements Metamodel { final AnnotationValue value = getAnnotationValue( mirror, "value" ); if ( value != null ) { @SuppressWarnings("unchecked") - final List values = - (List) value.getValue(); - for ( AnnotationMirror annotationMirror : values ) { - handleNamedQuery( annotationMirror, checkHql ); + final List annotationValues = + (List) value.getValue(); + for ( AnnotationValue annotationValue : annotationValues ) { + handleNamedQuery( (AnnotationMirror) annotationValue.getValue(), checkHql ); } } } @@ -134,10 +134,10 @@ public abstract class AnnotationMeta implements Metamodel { final AnnotationValue value = getAnnotationValue( mirror, "value" ); if ( value != null ) { @SuppressWarnings("unchecked") - final List values = - (List) value.getValue(); - for ( AnnotationMirror annotationMirror : values ) { - addAuxiliaryMembersForMirror( annotationMirror, prefix ); + final List annotationValues = + (List) value.getValue(); + for ( AnnotationValue annotationValue : annotationValues ) { + addAuxiliaryMembersForMirror( (AnnotationMirror) annotationValue.getValue(), prefix ); } } }