From: AsamK Date: Tue, 15 Sep 2015 11:26:02 +0000 (+0200) Subject: Use generic type inference from java 8 X-Git-Tag: v0.0.4~7 X-Git-Url: https://git.nmode.ca/signal-cli/commitdiff_plain/117f839547a064ccc2253e9e682bcd6b3dd6b7c9 Use generic type inference from java 8 --- 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);