mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-22 11:06:08 +00:00
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
eebe0e3e21
commit
a3f4cd6cd3
@ -71,10 +71,10 @@ private void handleNamedQueryRepeatableAnnotation(String annotationName, boolean
|
||||
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 @@ private void addAuxiliaryMembersForRepeatableAnnotation(String annotationName, S
|
||||
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…
x
Reference in New Issue
Block a user