From ee20f0f1e0fd779bd45e159385ab355795cd51e0 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Mon, 11 Jan 2010 14:23:17 +0000 Subject: [PATCH] * removed usage of empty list as it is immutable git-svn-id: svn+ssh://svn.synyx.de/var/svn/synyx/opensource/hera/trunk@8541 5a64d73e-33d6-4ccc-9058-23f8668ecac9 --- .../java/org/synyx/hera/core/SimplePluginRegistry.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/org/synyx/hera/core/SimplePluginRegistry.java b/core/src/main/java/org/synyx/hera/core/SimplePluginRegistry.java index 3505601..8a91e24 100644 --- a/core/src/main/java/org/synyx/hera/core/SimplePluginRegistry.java +++ b/core/src/main/java/org/synyx/hera/core/SimplePluginRegistry.java @@ -17,7 +17,6 @@ package org.synyx.hera.core; import java.util.ArrayList; -import java.util.Collections; import java.util.Iterator; import java.util.List; @@ -33,8 +32,6 @@ import java.util.List; public class SimplePluginRegistry, S> implements MutablePluginRegistry { - private final List EMPTY_LIST = Collections.emptyList(); - // Registered plugins private List plugins; @@ -45,7 +42,9 @@ public class SimplePluginRegistry, S> implements */ protected SimplePluginRegistry(List plugins) { - this.plugins = null == plugins ? EMPTY_LIST : new ArrayList(plugins); + this.plugins = + null == plugins ? new ArrayList() + : new ArrayList(plugins); }