mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (pointless annotations)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user