X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fnotify%2FListNotification.java;h=6a7b086f32a8b070b124254c616e7f2c42782f86;hp=039639eb176ee92e96b63d507067d9fca4f1f516;hb=179e7da4d8d8a474d0b622d60b5f5d32d6ab4052;hpb=62573c314957b1851f4fbe693b8746686caa940a diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java index 039639e..6a7b086 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java @@ -1,5 +1,5 @@ /* - * Sone - ListNotification.java - Copyright © 2010–2016 David Roden + * Sone - ListNotification.java - Copyright © 2010–2019 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -37,7 +37,7 @@ public class ListNotification extends TemplateNotification { private final String key; /** The list of new elements. */ - private final List elements = new CopyOnWriteArrayList(); + private final List elements = new CopyOnWriteArrayList<>(); /** * Creates a new list notification. @@ -96,7 +96,7 @@ public class ListNotification extends TemplateNotification { * @return The current list of elements */ public List getElements() { - return new ArrayList(elements); + return new ArrayList<>(elements); } /**