Skip to content

Commit 95881bc

Browse files
committed
cleanup
1 parent bc11f42 commit 95881bc

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/main/java/org/htmlunit/cyberneko/HTMLTagBalancer.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,9 +1322,11 @@ protected final Augmentations synthesizedAugs() {
13221322

13231323
// Modifies the given name based on the specified mode.
13241324
protected static String modifyName(final String name, final short mode) {
1325-
switch (mode) {
1326-
case NAMES_UPPERCASE: return name.toUpperCase(Locale.ROOT);
1327-
case NAMES_LOWERCASE: return name.toLowerCase(Locale.ROOT);
1325+
if (NAMES_UPPERCASE == mode) {
1326+
return name.toUpperCase(Locale.ROOT);
1327+
}
1328+
if (NAMES_LOWERCASE == mode) {
1329+
return name.toLowerCase(Locale.ROOT);
13281330
}
13291331
return name;
13301332
}

0 commit comments

Comments
 (0)