[concurrency-interest] Code Hygiene; Unused Imports

Ernst, Matthias matthias.ernst at coremedia.com
Tue Mar 14 06:24:11 EST 2006


Hi,

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.

Cheers
Matthias

-- 
Matthias Ernst
Software Engineer
 
tel +49.40.32 55 87.503
fax +49.40.32 55 87.999
matthias.ernst at coremedia.com



More information about the Concurrency-interest mailing list