db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1574712 - /db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/processor/string/OrganizeImportsProcessor.java
Date Wed, 05 Mar 2014 22:48:06 GMT
Author: tfischer
Date: Wed Mar  5 22:48:05 2014
New Revision: 1574712

URL: http://svn.apache.org/r1574712
Log:
TORQUE-310 detect presence of class name on already cleaned file, not on original file

Modified:
    db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/processor/string/OrganizeImportsProcessor.java

Modified: db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/processor/string/OrganizeImportsProcessor.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/processor/string/OrganizeImportsProcessor.java?rev=1574712&r1=1574711&r2=1574712&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/processor/string/OrganizeImportsProcessor.java
(original)
+++ db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/processor/string/OrganizeImportsProcessor.java
Wed Mar  5 22:48:05 2014
@@ -74,7 +74,7 @@ public class OrganizeImportsProcessor im
                 : importsForClasses.entrySet())
         {
             String className = importForClassEntry.getKey();
-            if (toProcess.indexOf(className) == toProcess.lastIndexOf(className))
+            if (result.indexOf(className) == result.lastIndexOf(className))
             {
                 result = result.replace(importForClassEntry.getValue(), "");
             }



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


Mime
View raw message