aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-10-19 09:48:51 +0300
committerGravatar Vitaly Takmazov2020-10-19 09:48:51 +0300
commit17972adb2c94dd425c0144d71150212dab939d91 (patch)
tree8034a8767dde25e61580da9a2e44822cd6d481ba /src/main/java/com/juick
parentee1664e66746fac7f8870122af25f027cf80fe6d (diff)
More fixes for JDT warnings
* set target JDK to 15
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/XMPPManager.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/com/juick/XMPPManager.java b/src/main/java/com/juick/XMPPManager.java
index f2d568af..2565f87e 100644
--- a/src/main/java/com/juick/XMPPManager.java
+++ b/src/main/java/com/juick/XMPPManager.java
@@ -195,10 +195,7 @@ public class XMPPManager implements NotificationListener {
FileTransferManager fileTransferManager = xmpp.getManager(FileTransferManager.class);
fileTransferManager.addFileTransferOfferListener(e -> {
try {
- List<String> allowedTypes = new ArrayList<>() {{
- add("png");
- add("jpg");
- }};
+ List<String> allowedTypes = List.of("png", "jpg");
String attachmentExtension = FilenameUtils.getExtension(e.getName()).toLowerCase();
String targetFilename = String.format("%s.%s",
DigestUtils.md5Hex(String.format("%s-%s",