You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2014/12/29 16:20:46 UTC

svn commit: r1648363 - /commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/LuhnCheckDigit.java

Author: ggregory
Date: Mon Dec 29 15:20:45 2014
New Revision: 1648363

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

Modified:
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/LuhnCheckDigit.java

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/LuhnCheckDigit.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/LuhnCheckDigit.java?rev=1648363&r1=1648362&r2=1648363&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/LuhnCheckDigit.java (original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/LuhnCheckDigit.java Mon Dec 29 15:20:45 2014
@@ -69,7 +69,7 @@ public final class LuhnCheckDigit extend
      */
     protected int weightedValue(int charValue, int leftPos, int rightPos) {
         int weight = POSITION_WEIGHT[rightPos % 2];
-        int weightedValue = (charValue * weight);
+        int weightedValue = charValue * weight;
         return weightedValue > 9 ? (weightedValue - 9) : weightedValue;
     }
 }