Skip to content

Commit 66ba506

Browse files
committed
Refactor API calls in lvar.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1586298 13f79535-47bb-0310-9956-ffa450edef68
1 parent 40a63e6 commit 66ba506

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ public Metaphone() {
9191
*/
9292
public String metaphone(final String txt) {
9393
boolean hard = false;
94-
final int txtLength = txt.length();
95-
if (txt == null || txtLength == 0) {
94+
int txtLength;
95+
if (txt == null || (txtLength = txt.length()) == 0) {
9696
return "";
9797
}
9898
// single character is itself

0 commit comments

Comments
 (0)