diff --git a/hibernate-core/src/main/java/org/hibernate/mapping/PersistentClass.java b/hibernate-core/src/main/java/org/hibernate/mapping/PersistentClass.java index c4561953e8..cecbac45cc 100644 --- a/hibernate-core/src/main/java/org/hibernate/mapping/PersistentClass.java +++ b/hibernate-core/src/main/java/org/hibernate/mapping/PersistentClass.java @@ -260,24 +260,6 @@ public abstract class PersistentClass implements IdentifiableTypeClass, Attribut return new JoinedList<>( subclassLists ); } - /** - * Iterate over subclasses in a special 'order', most derived subclasses first. - * - * @deprecated use {@link #getSubclasses()} - */ - @Deprecated(since = "6.0") @Remove - public Iterator getSubclassIterator() { - @SuppressWarnings("unchecked") - final Iterator[] iterators = new Iterator[subclasses.size() + 1]; - final Iterator iterator = subclasses.iterator(); - int i = 0; - while ( iterator.hasNext() ) { - iterators[i++] = iterator.next().getSubclassIterator(); - } - iterators[i] = subclasses.iterator(); - return new JoinedIterator<>( iterators ); - } - public List getSubclassClosure() { final ArrayList> lists = new ArrayList<>(); lists.add( List.of( this ) );