From: David ‘Bombe’ Roden Date: Thu, 3 Mar 2016 11:20:43 +0000 (+0100) Subject: Simplify list notification X-Git-Tag: 0.9.5^2~40 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=154d29127fe2184c211b9f86c4d44a2c38d96a2f;p=Sone.git Simplify list notification --- diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java index 101b1fb..6911371 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java @@ -194,15 +194,7 @@ public class ListNotification extends TemplateNotification { if (!key.equals(listNotification.key)) { return false; } - if (elements.size() != listNotification.elements.size()) { - return false; - } - for (int index = 0; index < elements.size(); ++index) { - if (!elements.get(index).equals(listNotification.elements.get(index))) { - return false; - } - } - return true; + return elements.equals(listNotification.elements); } }