Any reason to clean up unused imports in Java, other than reducing clutter?

Posted by Kip on Stack Overflow See other posts from Stack Overflow or by Kip
Published on 2009-06-11T02:40:46Z Indexed on 2010/03/09 8:21 UTC
Read the original article Hit count: 139

Is there any good reason to avoid unused import statements in Java? As I understand it, they are there for the compiler, so lots of unused imports won't have any impacts on the compiled code. Is it just to reduce clutter and to avoid naming conflicts down the line?

(I ask because Eclipse gives a warning about unused imports, which is kind of annoying when I'm developing code because I don't want to remove the imports until I'm pretty sure I'm done designing the class.)

© Stack Overflow or respective owner

Related posts about java

Related posts about import