Skip to content

Commit 356db13

Browse files
committed
Remove extraneous parentheses such that "return (expr);" becomes "return expr;"
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/codec/trunk@130423 13f79535-47bb-0310-9956-ffa450edef68
1 parent d1c7c8d commit 356db13

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/java/org/apache/commons/codec/language/Metaphone.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* </p>
3232
*
3333
* @author Apache Software Foundation
34-
* @version $Id: Metaphone.java,v 1.20 2004/06/05 18:32:04 ggregory Exp $
34+
* @version $Id: Metaphone.java,v 1.21 2004/10/08 22:56:22 ggregory Exp $
3535
*/
3636
public class Metaphone implements StringEncoder {
3737

@@ -307,7 +307,7 @@ public String metaphone(String txt) {
307307
}
308308

309309
private boolean isVowel(StringBuffer string, int index) {
310-
return (this.vowels.indexOf(string.charAt(index)) >= 0);
310+
return this.vowels.indexOf(string.charAt(index)) >= 0;
311311
}
312312

313313
private boolean isPreviousChar(StringBuffer string, int index, char c) {

src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*
2929
* @see "http://www.cuj.com/documents/s=8038/cuj0006philips/"
3030
* @author Apache Software Foundation
31-
* @version $Id: DoubleMetaphoneTest.java,v 1.10 2004/08/05 20:39:40 ggregory Exp $
31+
* @version $Id: DoubleMetaphoneTest.java,v 1.11 2004/10/08 22:56:22 ggregory Exp $
3232
*/
3333
public class DoubleMetaphoneTest extends StringEncoderAbstractTest {
3434

@@ -1001,7 +1001,7 @@ public class DoubleMetaphoneTest extends StringEncoderAbstractTest {
10011001
"yeild", "yield" }, };
10021002

10031003
public static Test suite() {
1004-
return (new TestSuite(DoubleMetaphoneTest.class));
1004+
return new TestSuite(DoubleMetaphoneTest.class);
10051005
}
10061006

10071007
private DoubleMetaphone doubleMetaphone = null;

src/test/org/apache/commons/codec/language/MetaphoneTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
import org.apache.commons.codec.StringEncoderAbstractTest;
2424

2525
/**
26-
* @version $Id: MetaphoneTest.java,v 1.13 2004/08/05 20:39:40 ggregory Exp $
26+
* @version $Id: MetaphoneTest.java,v 1.14 2004/10/08 22:56:22 ggregory Exp $
2727
* @author Apache Software Foundation
2828
*/
2929
public class MetaphoneTest extends StringEncoderAbstractTest {
3030

3131
public static Test suite() {
32-
return (new TestSuite(MetaphoneTest.class));
32+
return new TestSuite(MetaphoneTest.class);
3333
}
3434

3535
private Metaphone metaphone = null;

src/test/org/apache/commons/codec/language/RefinedSoundexTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
/**
2727
* Tests RefinedSoundex.
2828
*
29-
* @version $Id: RefinedSoundexTest.java,v 1.12 2004/08/05 20:39:40 ggregory Exp $
29+
* @version $Id: RefinedSoundexTest.java,v 1.13 2004/10/08 22:56:22 ggregory Exp $
3030
* @author Apache Software Foundation
3131
*/
3232
public class RefinedSoundexTest extends StringEncoderAbstractTest {
3333

3434
public static Test suite() {
35-
return (new TestSuite(RefinedSoundexTest.class));
35+
return new TestSuite(RefinedSoundexTest.class);
3636
}
3737

3838
private RefinedSoundex encoder = null;

src/test/org/apache/commons/codec/language/SoundexTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
/**
2828
* Tests {@link Soundex}
2929
*
30-
* @version $Id: SoundexTest.java,v 1.19 2004/08/05 20:39:40 ggregory Exp $
30+
* @version $Id: SoundexTest.java,v 1.20 2004/10/08 22:56:22 ggregory Exp $
3131
* @author Apache Software Foundation
3232
*/
3333
public class SoundexTest extends StringEncoderAbstractTest {
3434

3535
public static Test suite() {
36-
return (new TestSuite(SoundexTest.class));
36+
return new TestSuite(SoundexTest.class);
3737
}
3838

3939
private Soundex encoder = null;

0 commit comments

Comments
 (0)