Use generic type inference from java 8

This commit is contained in:
AsamK 2015-09-15 13:26:02 +02:00
parent 76a1e8ec2f
commit 117f839547

View 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);