We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc11f42 commit 95881bcCopy full SHA for 95881bc
1 file changed
src/main/java/org/htmlunit/cyberneko/HTMLTagBalancer.java
@@ -1322,9 +1322,11 @@ protected final Augmentations synthesizedAugs() {
1322
1323
// Modifies the given name based on the specified mode.
1324
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);
+ if (NAMES_UPPERCASE == mode) {
+ return name.toUpperCase(Locale.ROOT);
+ }
1328
+ if (NAMES_LOWERCASE == mode) {
1329
+ return name.toLowerCase(Locale.ROOT);
1330
}
1331
return name;
1332
0 commit comments