Mark getAllTypes() and getAllPersistentTypes() methods of OrderRootType class as obsolete (IJPL-209433)

Following the suggestion in the review IJ-CR-176898.

GitOrigin-RevId: bc36ceb98fcc150fd0202ce6208fd7e38ff36a62
This commit is contained in:
Alexander Koshevoy
2025-10-06 22:28:40 +00:00
committed by intellij-monorepo-bot
parent a804d4ae2f
commit db657745ad
@@ -89,10 +89,22 @@ public class OrderRootType {
return false;
}
/**
* <h3>Obsolescence notice</h3>
* Returns the same elements as {@link #getAllPersistentTypesList()}, but as an array.
* Kept for compatibility; prefer {@link #getAllPersistentTypesList()}.
*/
@ApiStatus.Obsolete
public static OrderRootType @NotNull [] getAllTypes() {
return getAllPersistentTypes();
}
/**
* <h3>Obsolescence notice</h3>
* Returns the same elements as {@link #getAllPersistentTypesList()}, but as an array.
* Kept for compatibility; prefer {@link #getAllPersistentTypesList()}.
*/
@ApiStatus.Obsolete
public static PersistentOrderRootType @NotNull [] getAllPersistentTypes() {
return getAllPersistentTypesList().toArray(new PersistentOrderRootType[0]);
}