Skip to content

Commit

Permalink
re-format the code lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mandlil authored Sep 25, 2024
1 parent e9c8185 commit 9c3546d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ public String getFor(Object key) {
private boolean isAlphanumeric(String key) {
if (key == null || key.length() == 0) {
return false;
}
}
// String#length doesn't actually return the number of
// code points in the String, it returns the number
// of char values.
int size = key.length();
for (int charIdx = 0; charIdx < size; ) {
for (int charIdx = 0; charIdx < size; ) {
final int codePoint = key.codePointAt(charIdx);
if (!Character.isLetterOrDigit(codePoint)) {
return false;
Expand Down

0 comments on commit 9c3546d

Please sign in to comment.