commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1648366 - in /commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit: EAN13CheckDigit.java IBANCheckDigit.java ModulusCheckDigit.java SedolCheckDigit.java
Date Mon, 29 Dec 2014 15:25:55 GMT
Author: ggregory
Date: Mon Dec 29 15:25:55 2014
New Revision: 1648366

URL: http://svn.apache.org/r1648366
Log:
Remove useless parens.

Modified:
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/EAN13CheckDigit.java
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/ModulusCheckDigit.java
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/SedolCheckDigit.java

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/EAN13CheckDigit.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/EAN13CheckDigit.java?rev=1648366&r1=1648365&r2=1648366&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/EAN13CheckDigit.java
(original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/EAN13CheckDigit.java
Mon Dec 29 15:25:55 2014
@@ -72,6 +72,6 @@ public final class EAN13CheckDigit exten
      */
     protected int weightedValue(int charValue, int leftPos, int rightPos) {
         int weight = POSITION_WEIGHT[rightPos % 2];
-        return (charValue * weight);
+        return charValue * weight;
     }
 }

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java?rev=1648366&r1=1648365&r2=1648366&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java
(original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java
Mon Dec 29 15:25:55 2014
@@ -117,7 +117,7 @@ public final class IBANCheckDigit implem
             }
             total = (charValue > 9 ? total * 100 : total * 10) + charValue;
             if (total > MAX) {
-                total = (total % MODULUS);
+                total = total % MODULUS;
             }
         }
         return (int)(total % MODULUS);

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/ModulusCheckDigit.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/ModulusCheckDigit.java?rev=1648366&r1=1648365&r2=1648366&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/ModulusCheckDigit.java
(original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/ModulusCheckDigit.java
Mon Dec 29 15:25:55 2014
@@ -116,7 +116,7 @@ public abstract class ModulusCheckDigit
         if (total == 0) {
             throw new CheckDigitException("Invalid code, sum is zero");
         }
-        return (total % modulus);
+        return total % modulus;
     }
 
     /**

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/SedolCheckDigit.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/SedolCheckDigit.java?rev=1648366&r1=1648365&r2=1648366&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/SedolCheckDigit.java
(original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/SedolCheckDigit.java
Mon Dec 29 15:25:55 2014
@@ -82,7 +82,7 @@ public final class SedolCheckDigit exten
      * @return The weighted value of the character.
      */
     protected int weightedValue(int charValue, int leftPos, int rightPos) {
-        return (charValue * POSITION_WEIGHT[leftPos - 1]);
+        return charValue * POSITION_WEIGHT[leftPos - 1];
     }
 
     /**



Mime
View raw message