From b0aa279f0d9bbeee3c41965714cede1ceadabe6c Mon Sep 17 00:00:00 2001
From: brinn <brinn>
Date: Mon, 10 Mar 2008 07:31:49 +0000
Subject: [PATCH] change: comply to coding style

SVN: 4723
---
 .../cisd/dbmigration/DBScriptFormatter.java      | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DBScriptFormatter.java b/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DBScriptFormatter.java
index 3a85275b14b..87042be954f 100644
--- a/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DBScriptFormatter.java
+++ b/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DBScriptFormatter.java
@@ -147,18 +147,18 @@ public class DBScriptFormatter
 
     private static void printInitialComment(PrintWriter out, String sqlScript)
     {
-        for (String scriptLine : StringUtils.split(sqlScript, '\n'))
+        for (final String scriptLine : StringUtils.split(sqlScript, '\n'))
         {
-            scriptLine = scriptLine.trim();
-            if (scriptLine.length() > 0 && scriptLine.startsWith(COMMENT) == false)
+            final String trimmedScriptLine = scriptLine.trim();
+            if (trimmedScriptLine.length() > 0 && trimmedScriptLine.startsWith(COMMENT) == false)
             {
                 break;
             }
-            if (scriptLine.substring(COMMENT.length()).trim().toUpperCase().startsWith("CREATING"))
+            if (trimmedScriptLine.substring(COMMENT.length()).trim().toUpperCase().startsWith("CREATING"))
             {
                 continue;
             }
-            out.println(scriptLine);
+            out.println(trimmedScriptLine);
         }
     }
 
@@ -189,13 +189,13 @@ public class DBScriptFormatter
     private static Map<StatementClass, List<String>> createStatementMap(List<String> sqlStatements)
     {
         final Map<StatementClass, List<String>> map = new HashMap<StatementClass, List<String>>();
-        for (String sqlStatement : sqlStatements)
+        for (final String sqlStatement : sqlStatements)
         {
-            sqlStatement = sqlStatement.toUpperCase();
+            final String upperCaseSqlStatement = sqlStatement.toUpperCase();
 
             for (StatementClass statementClass : StatementClass.values())
             {
-                if (addIfAppropriate(sqlStatement, statementClass, map))
+                if (addIfAppropriate(upperCaseSqlStatement, statementClass, map))
                 {
                     break;
                 }
-- 
GitLab