From 117f839547a064ccc2253e9e682bcd6b3dd6b7c9 Mon Sep 17 00:00:00 2001 From: AsamK Date: Tue, 15 Sep 2015 13:26:02 +0200 Subject: [PATCH] Use generic type inference from java 8 --- src/main/java/cli/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);