HHH-18149 fix for HibernateProcessor on ecj
A typecast which works on javac doesn't work on ecj, but I agree that ecj is correct here. Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
8ceed5ab5a
commit
b30b510381
|
@ -71,10 +71,10 @@ public abstract class AnnotationMeta implements Metamodel {
|
|||
final AnnotationValue value = getAnnotationValue( mirror, "value" );
|
||||
if ( value != null ) {
|
||||
@SuppressWarnings("unchecked")
|
||||
final List<? extends AnnotationMirror> values =
|
||||
(List<? extends AnnotationMirror>) value.getValue();
|
||||
for ( AnnotationMirror annotationMirror : values ) {
|
||||
handleNamedQuery( annotationMirror, checkHql );
|
||||
final List<? extends AnnotationValue> annotationValues =
|
||||
(List<? extends AnnotationValue>) 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<? extends AnnotationMirror> values =
|
||||
(List<? extends AnnotationMirror>) value.getValue();
|
||||
for ( AnnotationMirror annotationMirror : values ) {
|
||||
addAuxiliaryMembersForMirror( annotationMirror, prefix );
|
||||
final List<? extends AnnotationValue> annotationValues =
|
||||
(List<? extends AnnotationValue>) value.getValue();
|
||||
for ( AnnotationValue annotationValue : annotationValues ) {
|
||||
addAuxiliaryMembersForMirror( (AnnotationMirror) annotationValue.getValue(), prefix );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue