Skip to content

Commit

Permalink
Remove dead in-line comment
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 13, 2024
1 parent 62292bb commit 2a37866
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/org/apache/commons/lang3/text/WordUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
@Deprecated
public class WordUtils {

// Capitalizing
/**
* Capitalizes all the whitespace separated words in a String.
* Only the first character of each word is changed. To convert the
Expand Down Expand Up @@ -273,12 +272,14 @@ public static String initials(final String str, final char... delimiters) {
final char ch = str.charAt(i);
if (isDelimiter(ch, delimiters)) {
lastWasGap = true;
} else if (lastWasGap) {
continue;
}
if (lastWasGap) {
buf[count++] = ch;
lastWasGap = false;
} else {
continue; // ignore ch
}

// ignore ch
}
return new String(buf, 0, count);
}
Expand Down

0 comments on commit 2a37866

Please sign in to comment.