commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1648363 - /commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/checkdigit/LuhnCheckDigit.java
Date Mon, 29 Dec 2014 15:20:46 GMT
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;
     }
 }



Mime
View raw message