mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
AppCode: changinh build settings
This commit is contained in:
@@ -1470,6 +1470,15 @@ public class StringUtil {
|
||||
return indexOf(s, c, start, end) >= 0;
|
||||
}
|
||||
|
||||
public static boolean containsWhitespaces(@Nullable CharSequence s) {
|
||||
if (s == null) return false;
|
||||
|
||||
for (int i = 0; i < s.length(); i++) {
|
||||
if (Character.isWhitespace(s.charAt(i))) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static int indexOf(@NotNull CharSequence s, char c) {
|
||||
return indexOf(s, c, 0, s.length());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user