Use generic type inference from java 8
This commit is contained in:
parent
76a1e8ec2f
commit
117f839547
@ -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;
|
List<TextSecureAttachment> textSecureAttachments = null;
|
||||||
if (attachments != null) {
|
if (attachments != null) {
|
||||||
textSecureAttachments = new ArrayList<TextSecureAttachment>(attachments.size());
|
textSecureAttachments = new ArrayList<>(attachments.size());
|
||||||
for (String attachment : attachments) {
|
for (String attachment : attachments) {
|
||||||
try {
|
try {
|
||||||
File attachmentFile = new File(attachment);
|
File attachmentFile = new File(attachment);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user