hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r756299 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.java
Date Fri, 20 Mar 2009 01:54:43 GMT
Author: sebb
Date: Fri Mar 20 01:54:42 2009
New Revision: 756299

URL: http://svn.apache.org/viewvc?rev=756299&view=rev
Log:
More Immutable classes

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.java?rev=756299&r1=756298&r2=756299&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.java
Fri Mar 20 01:54:42 2009
@@ -34,6 +34,8 @@
 import java.lang.ref.WeakReference;
 import java.lang.ref.ReferenceQueue;
 
+import net.jcip.annotations.Immutable;
+
 import org.apache.http.conn.routing.HttpRoute;
 
 
@@ -45,10 +47,11 @@
  *
  * @since 4.0
  */
+@Immutable
 public class BasicPoolEntryRef extends WeakReference<BasicPoolEntry> {
 
     /** The planned route of the entry. */
-    private final HttpRoute route;
+    private final HttpRoute route; // HttpRoute is @Immutable
 
 
     /**



Mime
View raw message