mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Use generic type inference from java 8
This commit is contained in:
parent
76a1e8ec2f
commit
117f839547
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue