db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1521282 - /db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/control/existingtargetstrategy/MergeTargetFileStrategy.java
Date Mon, 09 Sep 2013 20:26:20 GMT
Author: tfischer
Date: Mon Sep  9 20:26:19 2013
New Revision: 1521282

URL: http://svn.apache.org/r1521282
Log:
fix javadoc
use final modifier where possible

Modified:
    db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/control/existingtargetstrategy/MergeTargetFileStrategy.java

Modified: db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/control/existingtargetstrategy/MergeTargetFileStrategy.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/control/existingtargetstrategy/MergeTargetFileStrategy.java?rev=1521282&r1=1521281&r2=1521282&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/control/existingtargetstrategy/MergeTargetFileStrategy.java
(original)
+++ db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/control/existingtargetstrategy/MergeTargetFileStrategy.java
Mon Sep  9 20:26:19 2013
@@ -43,7 +43,10 @@ public class MergeTargetFileStrategy imp
     /** The strategy name "replace". */
     public static final String STRATEGY_NAME = "merge";
 
-    /** The subdirectory in the work directory<. */
+    /**
+     * The subdirectory in the work directory where the results
+     * of the last generation will be stored.
+     */
     public static final String WORK_SUBDIR = "raw-generated";
 
     /** The classlogger. */
@@ -69,10 +72,10 @@ public class MergeTargetFileStrategy imp
      * @return true always.
      */
     public boolean beforeGeneration(
-            String outputDirKey,
-            String outputPath,
-            String encoding,
-            UnitConfiguration unitConfiguration)
+            final String outputDirKey,
+            final String outputPath,
+            final String encoding,
+            final UnitConfiguration unitConfiguration)
     {
         return true;
     }
@@ -93,11 +96,11 @@ public class MergeTargetFileStrategy imp
      * @throws GeneratorException on an error.
      */
     public void afterGeneration(
-                String outputDirKey,
-                String outputPath,
-                String encoding,
-                OutletResult generationResult,
-                UnitConfiguration unitConfiguration)
+                final String outputDirKey,
+                final String outputPath,
+                final String encoding,
+                final OutletResult generationResult,
+                final UnitConfiguration unitConfiguration)
             throws GeneratorException
     {
         File generationStorageDir
@@ -187,8 +190,8 @@ public class MergeTargetFileStrategy imp
      * @throws ControllerException if an error occurs while reading the file.
      */
     private String readFileToString(
-                File file,
-                String charset)
+                final File file,
+                final String charset)
             throws ControllerException
     {
         String result = null;
@@ -223,9 +226,9 @@ public class MergeTargetFileStrategy imp
      * @throws ControllerException if writing the file fails.
      */
     private void writeStringToFile(
-                File file,
-                String content,
-                String charset)
+                final File file,
+                final String content,
+                final String charset)
             throws ControllerException
     {
         try



---------------------------------------------------------------------
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