I've done most (perhaps all) of the HttpClient immutable classes, and
a few of the ones that are thread-safe (e.g. because access to mutable
objects is synchronized).

[Findbugs seems to work reasonably well with @Immutable, but AFAIK it
does not process @GuardedBy (yet).]

Ideally, each class should have one of @Immutable, @ThreadSafe or
@NotThreadSafe eventually.

The class annotations are themselves tagged as @Documented, so they
appear in the class Javadoc, which is very useful.

@GuardedBy is not tagged as @Documented, but is mainly for internal use.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to