commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject cvs commit: jakarta-commons/codec/src/java/org/apache/commons/codec/language Metaphone.java
Date Fri, 08 Oct 2004 22:56:22 GMT
ggregory    2004/10/08 15:56:22

  Modified:    codec/src/test/org/apache/commons/codec/language
                        SoundexTest.java RefinedSoundexTest.java
                        MetaphoneTest.java DoubleMetaphoneTest.java
               codec/src/java/org/apache/commons/codec/language
                        Metaphone.java
  Log:
  Remove extraneous parentheses such that "return (expr);" becomes "return expr;"
  
  Revision  Changes    Path
  1.20      +2 -2      jakarta-commons/codec/src/test/org/apache/commons/codec/language/SoundexTest.java
  
  Index: SoundexTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/codec/src/test/org/apache/commons/codec/language/SoundexTest.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- SoundexTest.java	5 Aug 2004 20:39:40 -0000	1.19
  +++ SoundexTest.java	8 Oct 2004 22:56:22 -0000	1.20
  @@ -33,7 +33,7 @@
   public class SoundexTest extends StringEncoderAbstractTest {
   
       public static Test suite() {
  -        return (new TestSuite(SoundexTest.class));
  +        return new TestSuite(SoundexTest.class);
       }
   
       private Soundex encoder = null;
  
  
  
  1.13      +2 -2      jakarta-commons/codec/src/test/org/apache/commons/codec/language/RefinedSoundexTest.java
  
  Index: RefinedSoundexTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/codec/src/test/org/apache/commons/codec/language/RefinedSoundexTest.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- RefinedSoundexTest.java	5 Aug 2004 20:39:40 -0000	1.12
  +++ RefinedSoundexTest.java	8 Oct 2004 22:56:22 -0000	1.13
  @@ -32,7 +32,7 @@
   public class RefinedSoundexTest extends StringEncoderAbstractTest {
   
       public static Test suite() {
  -        return (new TestSuite(RefinedSoundexTest.class));
  +        return new TestSuite(RefinedSoundexTest.class);
       }
   
       private RefinedSoundex encoder = null;
  
  
  
  1.14      +2 -2      jakarta-commons/codec/src/test/org/apache/commons/codec/language/MetaphoneTest.java
  
  Index: MetaphoneTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/codec/src/test/org/apache/commons/codec/language/MetaphoneTest.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- MetaphoneTest.java	5 Aug 2004 20:39:40 -0000	1.13
  +++ MetaphoneTest.java	8 Oct 2004 22:56:22 -0000	1.14
  @@ -29,7 +29,7 @@
   public class MetaphoneTest extends StringEncoderAbstractTest {
   
       public static Test suite() {
  -        return (new TestSuite(MetaphoneTest.class));
  +        return new TestSuite(MetaphoneTest.class);
       }
   
       private Metaphone metaphone = null;
  
  
  
  1.11      +2 -2      jakarta-commons/codec/src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java
  
  Index: DoubleMetaphoneTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/codec/src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DoubleMetaphoneTest.java	5 Aug 2004 20:39:40 -0000	1.10
  +++ DoubleMetaphoneTest.java	8 Oct 2004 22:56:22 -0000	1.11
  @@ -1001,7 +1001,7 @@
               "yeild", "yield" }, };
   
       public static Test suite() {
  -        return (new TestSuite(DoubleMetaphoneTest.class));
  +        return new TestSuite(DoubleMetaphoneTest.class);
       }
   
       private DoubleMetaphone doubleMetaphone = null;
  
  
  
  1.21      +2 -2      jakarta-commons/codec/src/java/org/apache/commons/codec/language/Metaphone.java
  
  Index: Metaphone.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/codec/src/java/org/apache/commons/codec/language/Metaphone.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- Metaphone.java	5 Jun 2004 18:32:04 -0000	1.20
  +++ Metaphone.java	8 Oct 2004 22:56:22 -0000	1.21
  @@ -307,7 +307,7 @@
       }
   
   	private boolean isVowel(StringBuffer string, int index) {
  -		return (this.vowels.indexOf(string.charAt(index)) >= 0);
  +		return this.vowels.indexOf(string.charAt(index)) >= 0;
   	}
   
   	private boolean isPreviousChar(StringBuffer string, int index, char c) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message