removed notnull

This commit is contained in:
Alexey Kudravtsev
2012-10-30 15:19:03 +04:00
parent 17b0d26a1c
commit cec377a370
@@ -88,7 +88,8 @@ public class StringUtil extends StringUtilRt {
};
}
@NotNull public static Function<String, String> TRIMMER = new Function<String, String>() {
@NotNull
public static Function<String, String> TRIMMER = new Function<String, String>() {
@Nullable
@Override
public String fun(@Nullable String s) {
@@ -96,7 +97,8 @@ public class StringUtil extends StringUtilRt {
}
};
@NotNull public static String replace(@NonNls @NotNull String text, @NonNls @NotNull String oldS, @NonNls @Nullable String newS) {
@NotNull
public static String replace(@NonNls @NotNull String text, @NonNls @NotNull String oldS, @NonNls @Nullable String newS) {
return replace(text, oldS, newS, false);
}
@@ -134,7 +136,6 @@ public class StringUtil extends StringUtilRt {
return newBuffer == null ? buffer : newBuffer.toString();
}
@NotNull
public static String replace(@NotNull final String text, @NotNull final String oldS, @Nullable final String newS, boolean ignoreCase) {
if (text.length() < oldS.length()) return text;