mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 12:49:55 +01:00
Addressing second round of review issues
This commit is contained in:
@@ -86,4 +86,11 @@ public class StringUtils {
|
||||
public static String trim(String s) {
|
||||
return s.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the string is longer than maxLength
|
||||
*/
|
||||
public static boolean isTooLong(String s, int maxLength) {
|
||||
return toUtf8(s).length > maxLength;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user