X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/6f4d538832b0ee1a4bb45de5d96c9afd5d07f463..19b5c761544e355c8668d25de9b9671061b5b81c:/src/main/java/org/asamk/signal/util/Util.java diff --git a/src/main/java/org/asamk/signal/util/Util.java b/src/main/java/org/asamk/signal/util/Util.java index 948560af..e193d253 100644 --- a/src/main/java/org/asamk/signal/util/Util.java +++ b/src/main/java/org/asamk/signal/util/Util.java @@ -41,12 +41,12 @@ public class Util { } private static String toCamelCaseString(List strings) { - if (strings.size() == 0) { + if (strings.isEmpty()) { return ""; } return strings.get(0) + strings.stream() .skip(1) - .filter(s -> s.length() > 0) + .filter(s -> !s.isEmpty()) .map(s -> Character.toUpperCase(s.charAt(0)) + s.substring(1).toLowerCase(Locale.ROOT)) .collect(Collectors.joining()); }