commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1072742 - /commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/DoubleMetaphone.java
Date Sun, 20 Feb 2011 21:39:03 GMT
Author: ggregory
Date: Sun Feb 20 21:39:03 2011
New Revision: 1072742

URL: http://svn.apache.org/viewvc?rev=1072742&view=rev
Log:
Fix PMD violation: Avoid unused method parameters such as 'value'.

Modified:
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/DoubleMetaphone.java

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/DoubleMetaphone.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/DoubleMetaphone.java?rev=1072742&r1=1072741&r2=1072742&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/DoubleMetaphone.java
(original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/DoubleMetaphone.java
Sun Feb 20 21:39:03 2011
@@ -102,7 +102,7 @@ public class DoubleMetaphone implements 
             case 'O':
             case 'U':
             case 'Y':
-                index = handleAEIOUY(value, result, index);
+                index = handleAEIOUY(result, index);
                 break;
             case 'B':
                 result.append('P');
@@ -267,7 +267,7 @@ public class DoubleMetaphone implements 
     /**
      * Handles 'A', 'E', 'I', 'O', 'U', and 'Y' cases
      */
-    private int handleAEIOUY(String value, DoubleMetaphoneResult result, int 
+    private int handleAEIOUY(DoubleMetaphoneResult result, int 
                              index) {
         if (index == 0) {
             result.append('A');



Mime
View raw message