Author: richard.opalka(a)jboss.com
Date: 2009-08-04 09:45:10 -0400 (Tue, 04 Aug 2009)
New Revision: 10482
Modified:
framework/branches/ropalka/src/main/java/org/jboss/wsf/framework/deployment/DefaultService.java
Log:
[JBWS-2332] refactoring fix
Modified:
framework/branches/ropalka/src/main/java/org/jboss/wsf/framework/deployment/DefaultService.java
===================================================================
---
framework/branches/ropalka/src/main/java/org/jboss/wsf/framework/deployment/DefaultService.java 2009-08-04
13:22:43 UTC (rev 10481)
+++
framework/branches/ropalka/src/main/java/org/jboss/wsf/framework/deployment/DefaultService.java 2009-08-04
13:45:10 UTC (rev 10482)
@@ -26,7 +26,6 @@
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.spi.deployment.Endpoint;
-import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
@@ -100,7 +99,10 @@
if ( virtualHosts != null )
{
final List<String> retVal = new LinkedList<String>();
- Collections.copy(retVal, virtualHosts);
+ for ( String virtualHost : virtualHosts )
+ {
+ retVal.add( virtualHost );
+ }
return retVal;
}
Show replies by date