[concurrency-interest] Code Hygiene; Unused Imports
dcholmes at optusnet.com.au
Tue Mar 14 17:44:46 EST 2006
I haven't checked in detail but many of the "unused" imports are/were
actually needed to workaround a javadoc bug - ie we needed the import for
javadoc, not javac.
Not sure of the current state of the world there.
> -----Original Message-----
> From: concurrency-interest-bounces at cs.oswego.edu
> [mailto:concurrency-interest-bounces at cs.oswego.edu]On Behalf Of Ernst,
> Sent: Tuesday, 14 March 2006 9:24 PM
> To: concurrency-interest at cs.oswego.edu
> Subject: [concurrency-interest] Code Hygiene; Unused Imports
> as a user of IntelliJ I've become used to check the code analyzer
> "traffic light" and want to let you know that a number of files in j.u.c
> (1.5.0_06) had warnings on them ("unchecked" warnings aside):
> Delayed, Semaphore, ScheduledExecutorService, ExecutorService,
> CountdownLatch, ConcurrentHashMap, LockSupport, ReentrantLock,
> ReentrantReadWriteLock have unnecessary imports. DelayQueue#take
> declares an unused local "tl".
> As a relatively new part of J2SE the code should set an example in
> cleanliness :-)
> I haven't looked into Mustang.
> Matthias Ernst
> Software Engineer
> tel +49.40.32 55 87.503
> fax +49.40.32 55 87.999
> matthias.ernst at coremedia.com
> Concurrency-interest mailing list
> Concurrency-interest at altair.cs.oswego.edu
More information about the Concurrency-interest