File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
hibernate-core/src/main/java/org/hibernate/collection/spi Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -849,7 +849,8 @@ public final Iterator<E> queuedAdditionIterator() {
849
849
850
850
@ Override
851
851
public E next () {
852
- return operationQueue .get ( index ++ ).getAddedEntry ();
852
+ //noinspection unchecked
853
+ return (E ) operationQueue .get ( index ++ ).getAddedEntry ();
853
854
}
854
855
855
856
@ Override
@@ -1205,7 +1206,7 @@ protected interface DelayedOperation<E> {
1205
1206
1206
1207
E getAddedInstance ();
1207
1208
1208
- default E getAddedEntry () {
1209
+ default Object getAddedEntry () {
1209
1210
return getAddedInstance ();
1210
1211
}
1211
1212
Original file line number Diff line number Diff line change @@ -530,9 +530,8 @@ protected final K getIndex() {
530
530
}
531
531
532
532
@ Override
533
- public E getAddedEntry () {
534
- // The (E) cast is very hacky because E is not Map.Entry but we need it to conform to PersistentCollection.queuedAdditionIterator()
535
- return (E ) Map .entry ( getIndex (), getAddedInstance () );
533
+ public Object getAddedEntry () {
534
+ return Map .entry ( getIndex (), getAddedInstance () );
536
535
}
537
536
}
538
537
You can’t perform that action at this time.
0 commit comments