From bcb954642fb92d5f7e3d85ff75bcbdb9fd921c1d Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Sun, 10 Nov 2019 18:28:52 +0300 Subject: [PATCH] Deprecate an unused public API method GitOrigin-RevId: 315726cbb8727eb01610fc6baa8290c1d489defe --- .../util/src/com/intellij/openapi/util/text/StringUtil.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/util/src/com/intellij/openapi/util/text/StringUtil.java b/platform/util/src/com/intellij/openapi/util/text/StringUtil.java index b36880341e8e..20092890f356 100644 --- a/platform/util/src/com/intellij/openapi/util/text/StringUtil.java +++ b/platform/util/src/com/intellij/openapi/util/text/StringUtil.java @@ -521,6 +521,11 @@ public class StringUtil extends StringUtilRt { "per", "nor", "the", "to", "up", "upon", "via", "with" }; + /** + * @deprecated Use {@link #isPreposition(String, int, int, String[])}. + */ + @ApiStatus.ScheduledForRemoval(inVersion = "2020.1") + @Deprecated @Contract(pure = true) public static boolean isPreposition(@NotNull String s, int firstChar, int lastChar) { return isPreposition(s, firstChar, lastChar, ourPrepositions);