From 2cc6693db2cf86d3d9e21f1780fd477ebde13a59 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 13 Aug 2018 19:33:50 +0200 Subject: [PATCH] Cleanup (pointless annotations) --- .../src/com/intellij/openapi/util/text/StringUtilRt.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/util-rt/src/com/intellij/openapi/util/text/StringUtilRt.java b/platform/util-rt/src/com/intellij/openapi/util/text/StringUtilRt.java index d122c5582cbf..b7b63e1fff8e 100644 --- a/platform/util-rt/src/com/intellij/openapi/util/text/StringUtilRt.java +++ b/platform/util-rt/src/com/intellij/openapi/util/text/StringUtilRt.java @@ -2,7 +2,6 @@ package com.intellij.openapi.util.text; import org.jetbrains.annotations.Contract; -import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -267,14 +266,14 @@ public class StringUtilRt { } @Contract(pure = true) - public static boolean startsWithIgnoreCase(@NonNls @NotNull String str, @NonNls @NotNull String prefix) { + public static boolean startsWithIgnoreCase(@NotNull String str, @NotNull String prefix) { final int stringLength = str.length(); final int prefixLength = prefix.length(); return stringLength >= prefixLength && str.regionMatches(true, 0, prefix, 0, prefixLength); } @Contract(pure = true) - public static boolean endsWithIgnoreCase(@NonNls @NotNull CharSequence text, @NonNls @NotNull CharSequence suffix) { + public static boolean endsWithIgnoreCase(@NotNull CharSequence text, @NotNull CharSequence suffix) { int l1 = text.length(); int l2 = suffix.length(); if (l1 < l2) return false;