From 154d29127fe2184c211b9f86c4d44a2c38d96a2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 3 Mar 2016 12:20:43 +0100 Subject: [PATCH] Simplify list notification --- .../java/net/pterodactylus/sone/notify/ListNotification.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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); } } -- 2.7.4