logo       

Re: Question on JCIP annotations: msg#00016

java.jsr.166-concurrency

Subject: Re: Question on JCIP annotations

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 {
}

--tim

On 10/11/06, Holger Hoffstätte <holger@xxxxxxxxxx> 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

_______________________________________________
Concurrency-interest mailing list
Concurrency-interest@xxxxxxxxxxxxxxxxxxxx
http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise