commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1130750 - /commons/sandbox/digester3/trunk/src/examples/plugins/pipeline/src/main/java/org/apache/commons/digester3/examples/plugins/pipeline/CaseTransform.java
Date Thu, 02 Jun 2011 19:19:08 GMT
Author: simonetripodi
Date: Thu Jun  2 19:19:08 2011
New Revision: 1130750

URL: http://svn.apache.org/viewvc?rev=1130750&view=rev
Log:
added missing {} blocks

Modified:
    commons/sandbox/digester3/trunk/src/examples/plugins/pipeline/src/main/java/org/apache/commons/digester3/examples/plugins/pipeline/CaseTransform.java

Modified: commons/sandbox/digester3/trunk/src/examples/plugins/pipeline/src/main/java/org/apache/commons/digester3/examples/plugins/pipeline/CaseTransform.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/examples/plugins/pipeline/src/main/java/org/apache/commons/digester3/examples/plugins/pipeline/CaseTransform.java?rev=1130750&r1=1130749&r2=1130750&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/examples/plugins/pipeline/src/main/java/org/apache/commons/digester3/examples/plugins/pipeline/CaseTransform.java
(original)
+++ commons/sandbox/digester3/trunk/src/examples/plugins/pipeline/src/main/java/org/apache/commons/digester3/examples/plugins/pipeline/CaseTransform.java
Thu Jun  2 19:19:08 2011
@@ -35,17 +35,22 @@ public class CaseTransform
     public void setCase( String caseType )
     {
         if ( caseType.equalsIgnoreCase( "upper" ) )
+        {
             toLower = false;
+        }
         else
+        {
             toLower = true;
+        }
     }
 
     public String transform( String s )
     {
         if ( toLower )
+        {
             return s.toLowerCase();
-        else
-            return s.toUpperCase();
+        }
+        return s.toUpperCase();
     }
 
 }



Mime
View raw message