[concurrency-interest] Question on JCIP annotations

Tim Peierls tim at peierls.net
Thu Oct 12 07:38:18 EDT 2006

We were trying to keep the number of annotations to a minimum, otherwise
this would have been called @Stateless.

How about this:

@ThreadSafe // because stateless
public class Util {


On 10/11/06, Holger Hoffstätte <holger at wizards.de> wrote:
> While adopting the JCIP annotations I've come across quite a few "utility
> classes", i.e. classes that only contain static methods and no
> mutable/visible/published state. Is this considered to be @Threadsafe or
> @Immutable? I guess both but that was probably not the intention. :^)
> thanks
> Holger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20061012/3c453d14/attachment.html 

More information about the Concurrency-interest mailing list