+ fix JDK 5 compatibility

This commit is contained in:
Costin Leau
2011-08-28 19:05:46 +03:00
parent 59e43cd15d
commit d38a7a65e1
2 changed files with 6 additions and 6 deletions

View File

@@ -16,9 +16,9 @@
package org.springframework.data.gemfire.listener;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;
import org.junit.AfterClass;
import org.junit.Before;
@@ -37,7 +37,7 @@ import com.gemstone.gemfire.cache.query.CqEvent;
*/
public class ListenerContainerTests {
private final BlockingDeque<CqEvent> bag = new LinkedBlockingDeque<CqEvent>();
private final List<CqEvent> bag = new ArrayList<CqEvent>();
protected ContinuousQueryListenerContainer container;
private static RegionService cache = null;

View File

@@ -15,8 +15,8 @@
*/
package org.springframework.data.gemfire.listener;
import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.ArrayList;
import java.util.List;
import org.springframework.util.ErrorHandler;
@@ -25,7 +25,7 @@ import org.springframework.util.ErrorHandler;
*/
public class StubErrorHandler implements ErrorHandler {
public BlockingDeque<Throwable> throwables = new LinkedBlockingDeque<Throwable>();
public List<Throwable> throwables = new ArrayList<Throwable>();
public void handleError(Throwable t) {