I should however note that equivalent usage is already present in the close() methods of FileInputStream, FileOutputStream, and RandomAccessFile which are also in java.io. Perhaps the problem you allude to would be more pertinent to java.lang classes?
Brian On Jun 24, 2015, at 1:21 PM, Brian Burkhalter <[email protected]> wrote: > Jason, > > Thanks for pointing this out. I am not sure of the answer. Let’s see what the > experts have to say. > > Thanks, > > Brian > > On Jun 24, 2015, at 1:03 PM, Jason Mehrens <[email protected]> wrote: > >> Not sure on this but, isn't it a little risky to import AtomicBoolean into >> such low level class? I vaguely remember there was an issue with using >> AtomicXXX in java.lang.Thread. Not sure if this case suffers the same fate.
