commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Art Gramlich <...@gramlich-net.com>
Subject [jci] Ignoring unused imports in the eclipse compiler
Date Mon, 21 Feb 2005 04:16:38 GMT
Here's a quick patch to make the eclipse compiler ignore unused  
imports.  I made it here locally since when testing "scripts", I  
sometimes forget to clean up the imports.  This seems to help.

Art Gramlich



Index: EclipseJavaCompiler.java
===================================================================
---  
src/java/org/apache/commons/jci/compilers/eclipse/ 
EclipseJavaCompiler.java	(revision 154619)
+++  
src/java/org/apache/commons/jci/compilers/eclipse/ 
EclipseJavaCompiler.java	(working copy)
@@ -113,6 +113,7 @@
          settings.put(CompilerOptions.OPTION_LineNumberAttribute,  
CompilerOptions.GENERATE);
          settings.put(CompilerOptions.OPTION_SourceFileAttribute,  
CompilerOptions.GENERATE);
          settings.put(CompilerOptions.OPTION_ReportDeprecation,  
CompilerOptions.IGNORE);
+        settings.put(CompilerOptions.OPTION_ReportUnusedImport,  
CompilerOptions.IGNORE);
          settings.put(CompilerOptions.OPTION_Encoding, "UTF-8");
          settings.put(CompilerOptions.OPTION_LocalVariableAttribute,  
CompilerOptions.GENERATE);
          settings.put(CompilerOptions.OPTION_Source,  
CompilerOptions.VERSION_1_4);


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


Mime
View raw message