Skip to content

Commit 07cf4e9

Browse files
committed
Eliminate unused variable warning by slight code rearrangement
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1333710 13f79535-47bb-0310-9956-ffa450edef68
1 parent fbefe56 commit 07cf4e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,12 +1190,12 @@ public void testIsDoubleMetaphoneEqualExtended3() {
11901190
matches.append("{\"" + name0 + "\", \"" + name1 + "\"}," + cr);
11911191
}
11921192
}
1193-
String msg = failures.toString();
11941193
matches.append("};");
11951194
// Turn on to print a new MATCH array
11961195
//System.out.println(matches.toString());
1197-
if (msg.length() > 0) {
1196+
if (failCount > 0) {
11981197
// Turn on to see which pairs do NOT match.
1198+
// String msg = failures.toString();
11991199
//fail(failCount + " failures out of " + FIXTURE.length + ". The
12001200
// following could be made to match: " + cr + msg);
12011201
}

0 commit comments

Comments
 (0)