Author: asoldano
Date: 2013-12-05 04:13:56 -0500 (Thu, 05 Dec 2013)
New Revision: 18137
Modified:
common/trunk/src/main/java/org/jboss/ws/common/monitoring/HostFilter.java
Log:
Better fix
Modified: common/trunk/src/main/java/org/jboss/ws/common/monitoring/HostFilter.java
===================================================================
--- common/trunk/src/main/java/org/jboss/ws/common/monitoring/HostFilter.java 2013-12-05
08:50:22 UTC (rev 18136)
+++ common/trunk/src/main/java/org/jboss/ws/common/monitoring/HostFilter.java 2013-12-05
09:13:56 UTC (rev 18137)
@@ -51,12 +51,7 @@
public HostFilter(Collection<String> hosts, boolean source)
{
- if (hosts instanceof List) {
- this.hosts = Collections.unmodifiableList((List<String>)hosts);
- } else {
- final List<String> l = new LinkedList<String>(hosts);
- this.hosts = Collections.unmodifiableList(l);
- }
+ this.hosts = Collections.unmodifiableList(new LinkedList<String>(hosts));
this.source = source;
}
Show replies by date