From 62f1705b0ccbb7ab7ad369b16aa93473a7f48342 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Wed, 26 Aug 2009 09:55:57 +0000 Subject: [PATCH] Might as well use original Javadoc Changed RetentionPolicy to CLASS (i.e. the default) git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@807948 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/http/annotation/GuardedBy.java | 34 +++++++++++++++++-- .../org/apache/http/annotation/Immutable.java | 18 ++++++++-- .../apache/http/annotation/NotThreadSafe.java | 9 +++-- .../apache/http/annotation/ThreadSafe.java | 11 +++--- 4 files changed, 59 insertions(+), 13 deletions(-) diff --git a/httpclient/src/main/java/org/apache/http/annotation/GuardedBy.java b/httpclient/src/main/java/org/apache/http/annotation/GuardedBy.java index 76689573d..5907d268c 100644 --- a/httpclient/src/main/java/org/apache/http/annotation/GuardedBy.java +++ b/httpclient/src/main/java/org/apache/http/annotation/GuardedBy.java @@ -32,8 +32,36 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * This annotation can be applied to a field or a method to indicate that its - * thread-safety is guaranteed by a synchronization particular lock. + * The field or method to which this annotation is applied can only be accessed + * when holding a particular lock, which may be a built-in (synchronization) lock, + * or may be an explicit java.util.concurrent.Lock. + * + * The argument determines which lock guards the annotated field or method: + *