From 208bcda71ce9a9d1b5116fed7d3914914b938d81 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Fri, 20 Mar 2009 01:54:42 +0000 Subject: [PATCH] More Immutable classes git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@756299 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.java b/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.java index 9d605086d..15fa49d55 100644 --- a/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.java +++ b/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.java @@ -34,6 +34,8 @@ package org.apache.http.impl.conn.tsccm; 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 @@ import org.apache.http.conn.routing.HttpRoute; * * @since 4.0 */ +@Immutable public class BasicPoolEntryRef extends WeakReference { /** The planned route of the entry. */ - private final HttpRoute route; + private final HttpRoute route; // HttpRoute is @Immutable /**