db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1574674 - /db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/outlet/OutletResult.java
Date Wed, 05 Mar 2014 21:29:10 GMT
Author: tfischer
Date: Wed Mar  5 21:29:10 2014
New Revision: 1574674

URL: http://svn.apache.org/r1574674
Log:
use final where possible
add toString method

Modified:
    db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/outlet/OutletResult.java

Modified: db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/outlet/OutletResult.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/outlet/OutletResult.java?rev=1574674&r1=1574673&r2=1574674&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/outlet/OutletResult.java
(original)
+++ db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/outlet/OutletResult.java
Wed Mar  5 21:29:10 2014
@@ -41,7 +41,7 @@ public class OutletResult
      *
      * @param stringResult the String result.
      */
-    public OutletResult(String stringResult)
+    public OutletResult(final String stringResult)
     {
         this.stringResult = stringResult;
     }
@@ -51,7 +51,7 @@ public class OutletResult
      *
      * @param byteArrayResult the byte array result.
      */
-    public OutletResult(byte[] byteArrayResult)
+    public OutletResult(final byte[] byteArrayResult)
     {
         this.byteArrayResult = byteArrayResult;
     }
@@ -112,7 +112,7 @@ public class OutletResult
     }
 
     @Override
-    public boolean equals(Object obj)
+    public boolean equals(final Object obj)
     {
         if (this == obj)
         {
@@ -133,6 +133,14 @@ public class OutletResult
         return equalsBuilder.isEquals();
     }
 
+
+    @Override
+    public String toString()
+    {
+        return "OutletResult [stringResult=" + stringResult
+                + ", byteArrayResult=" + Arrays.toString(byteArrayResult) + "]";
+    }
+
     /**
      * Concatenates an array of OutletResults.
      *
@@ -144,7 +152,7 @@ public class OutletResult
      * @throws GeneratorException if the input outlet results are
      *         of a different type.
      */
-    public static OutletResult concatenate(OutletResult... input)
+    public static OutletResult concatenate(final OutletResult... input)
             throws GeneratorException
     {
         if (input == null)
@@ -165,7 +173,7 @@ public class OutletResult
      * @throws GeneratorException if the input outlet results are
      *         of a different type.
      */
-    public static OutletResult concatenate(Iterable<OutletResult> input)
+    public static OutletResult concatenate(final Iterable<OutletResult> input)
             throws GeneratorException
     {
         if (input == null)



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