diff --git a/src/main/java/cli/Main.java b/src/main/java/cli/Main.java index 31979d8c..f80a74b6 100644 --- a/src/main/java/cli/Main.java +++ b/src/main/java/cli/Main.java @@ -105,10 +105,10 @@ public class Main { } } - final List attachments = ns.getList("attachment"); + final List attachments = ns.getList("attachment"); List textSecureAttachments = null; if (attachments != null) { - textSecureAttachments = new ArrayList(attachments.size()); + textSecureAttachments = new ArrayList<>(attachments.size()); for (String attachment : attachments) { try { File attachmentFile = new File(attachment);