commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Fwd: svn commit: r1617904 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/xz/XZUtils.java
Date Mon, 18 Aug 2014 11:29:42 GMT
On 2014-08-18, sebb wrote:

> I suspect just using a volatile enum would be sufficient as enums are
> thread-safe so it is just necessary to ensure safe publication.

I went with the volatile route since the code never used compareAndSet
or one of its friends anyway.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message