More Immutable classes

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@756299 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-03-20 01:54:42 +00:00
parent 3994fe9af2
commit 208bcda71c
1 changed files with 4 additions and 1 deletions

View File

@ -34,6 +34,8 @@ package org.apache.http.impl.conn.tsccm;
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;
import java.lang.ref.ReferenceQueue; import java.lang.ref.ReferenceQueue;
import net.jcip.annotations.Immutable;
import org.apache.http.conn.routing.HttpRoute; import org.apache.http.conn.routing.HttpRoute;
@ -45,10 +47,11 @@ import org.apache.http.conn.routing.HttpRoute;
* *
* @since 4.0 * @since 4.0
*/ */
@Immutable
public class BasicPoolEntryRef extends WeakReference<BasicPoolEntry> { public class BasicPoolEntryRef extends WeakReference<BasicPoolEntry> {
/** The planned route of the entry. */ /** The planned route of the entry. */
private final HttpRoute route; private final HttpRoute route; // HttpRoute is @Immutable
/** /**