Author: tv Date: Wed Jun 14 16:57:34 2017 New Revision: 1798716 URL: http://svn.apache.org/viewvc?rev=1798716&view=rev Log: Preliminary fix for JCS-178
Modified: commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java Modified: commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java?rev=1798716&r1=1798715&r2=1798716&view=diff ============================================================================== --- commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java (original) +++ commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitFacade.java Wed Jun 14 16:57:34 2017 @@ -1,25 +1,5 @@ package org.apache.commons.jcs.auxiliary.remote; -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.ArrayList; import java.util.List; import org.apache.commons.jcs.auxiliary.remote.server.behavior.RemoteType; @@ -68,10 +48,9 @@ public class RemoteCacheNoWaitFacade<K, super( noWaits, rca, cacheMgr, cacheEventLogger, elementSerializer ); this.cacheFactory = cacheFactory; - for (RemoteCacheNoWait<K,V> rcnw : new ArrayList<RemoteCacheNoWait<K, V>>(this.noWaits)) + for (RemoteCacheNoWait<K,V> rcnw : this.noWaits) { ((RemoteCache<K, V>)rcnw.getRemoteCache()).setFacade(this); - this.noWaits.add(rcnw); } }