From db657745adb284f68e14e94bf41a63c6477d04b4 Mon Sep 17 00:00:00 2001 From: Alexander Koshevoy Date: Mon, 6 Oct 2025 21:26:24 +0200 Subject: [PATCH] Mark getAllTypes() and getAllPersistentTypes() methods of OrderRootType class as obsolete (IJPL-209433) Following the suggestion in the review IJ-CR-176898. GitOrigin-RevId: bc36ceb98fcc150fd0202ce6208fd7e38ff36a62 --- .../com/intellij/openapi/roots/OrderRootType.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/platform/projectModel-api/src/com/intellij/openapi/roots/OrderRootType.java b/platform/projectModel-api/src/com/intellij/openapi/roots/OrderRootType.java index 90191ddceec3..f15ab6f6180c 100644 --- a/platform/projectModel-api/src/com/intellij/openapi/roots/OrderRootType.java +++ b/platform/projectModel-api/src/com/intellij/openapi/roots/OrderRootType.java @@ -89,10 +89,22 @@ public class OrderRootType { return false; } + /** + *

Obsolescence notice

+ * 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(); } + /** + *

Obsolescence notice

+ * 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]); }