Author: ron.sigal(a)jboss.com
Date: 2010-11-11 22:29:58 -0500 (Thu, 11 Nov 2010)
New Revision: 6130
Modified:
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/RemoteClassTable.java
Log:
JBREM-1259: Initialized remoteClasses, localClasses, and localClassWriters.
Modified:
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/RemoteClassTable.java
===================================================================
---
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/RemoteClassTable.java 2010-11-12
03:21:32 UTC (rev 6129)
+++
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/RemoteClassTable.java 2010-11-12
03:29:58 UTC (rev 6130)
@@ -38,9 +38,9 @@
private final ClientListener<ClassLookupRequest, ClassLookupResponse>
clientListener = new RctClientListener();
private final RequestListener<ClassLookupRequest, ClassLookupResponse>
requestListener = new RctRequestListener();
- private final ConcurrentMap<Integer, FutureClass> remoteClasses = null;
- private final ConcurrentMap<Integer, Class<?>> localClasses = null;
- private final ConcurrentMap<Class<?>, IntWriter> localClassWriters =
null;
+ private final ConcurrentMap<Integer, FutureClass> remoteClasses = new
CopyOnWriteHashMap<Integer, FutureClass>();
+ private final ConcurrentMap<Integer, Class<?>> localClasses = new
CopyOnWriteHashMap<Integer, Class<?>>();
+ private final ConcurrentMap<Class<?>, IntWriter> localClassWriters = new
CopyOnWriteHashMap<Class<?>, IntWriter>();
@SuppressWarnings({ "UnusedDeclaration" })
private volatile int seq;
Show replies by date