]> nmode's Git Repositories - signal-cli/commitdiff
Use generic type inference from java 8
authorAsamK <asamk@gmx.de>
Tue, 15 Sep 2015 11:26:02 +0000 (13:26 +0200)
committerAsamK <asamk@gmx.de>
Tue, 15 Sep 2015 11:26:02 +0000 (13:26 +0200)
src/main/java/cli/Main.java

index 31979d8cd590fd9dce1f6bd17ceae35457c9f1a7..f80a74b67c394e920c060f9271c38f021d314ee3 100644 (file)
@@ -105,10 +105,10 @@ public class Main {
                     }
                 }
 
-                final List<String> attachments = ns.<String>getList("attachment");
+                final List<String> attachments = ns.getList("attachment");
                 List<TextSecureAttachment> textSecureAttachments = null;
                 if (attachments != null) {
-                    textSecureAttachments = new ArrayList<TextSecureAttachment>(attachments.size());
+                    textSecureAttachments = new ArrayList<>(attachments.size());
                     for (String attachment : attachments) {
                         try {
                             File attachmentFile = new File(attachment);