Author: david.lloyd(a)jboss.com
Date: 2008-12-16 18:06:58 -0500 (Tue, 16 Dec 2008)
New Revision: 4756
Modified:
remoting3/trunk/core/src/main/java/org/jboss/remoting/core/EndpointImpl.java
Log:
Slightly improved API usage
Modified: remoting3/trunk/core/src/main/java/org/jboss/remoting/core/EndpointImpl.java
===================================================================
---
remoting3/trunk/core/src/main/java/org/jboss/remoting/core/EndpointImpl.java 2008-12-16
23:06:36 UTC (rev 4755)
+++
remoting3/trunk/core/src/main/java/org/jboss/remoting/core/EndpointImpl.java 2008-12-16
23:06:58 UTC (rev 4756)
@@ -101,7 +101,7 @@
config.setRequestListener(requestListener);
config.setClientContext(new ClientContextImpl(executor));
final LocalRequestHandler<I, O> localRequestHandler = new
LocalRequestHandler<I, O>(config);
- final WeakCloseable lrhCloseable = new WeakCloseable(new
WeakReference<Closeable>(localRequestHandler));
+ final WeakCloseable lrhCloseable = new WeakCloseable(localRequestHandler);
final Key key = addCloseHandler(new CloseHandler<Endpoint>() {
public void handleClose(final Endpoint closed) {
IoUtils.safeClose(lrhCloseable);
Show replies by date