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:
parent
3994fe9af2
commit
208bcda71c
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue