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:34 UTC

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

Author: ggregory
Date: Mon Dec 29 15:20:34 2014
New Revision: 1648362

URL: http://svn.apache.org/r1648362
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=1648362&r1=1648361&r2=1648362&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:34 2014
@@ -70,6 +70,6 @@ public final class LuhnCheckDigit extend
     protected int weightedValue(int charValue, int leftPos, int rightPos) {
         int weight = POSITION_WEIGHT[rightPos % 2];
         int weightedValue = (charValue * weight);
-        return (weightedValue > 9 ? (weightedValue - 9) : weightedValue);
+        return weightedValue > 9 ? (weightedValue - 9) : weightedValue;
     }
 }