Skip to content

Commit

Permalink
another micro optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Nov 26, 2024
1 parent f63e7dc commit f203d9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/htmlunit/cyberneko/HTMLScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -2759,7 +2759,9 @@ protected String scanStartElement(final boolean[] empty) throws IOException {
return null;
}
ename = modifyName(ename, fNamesElems);
attributes_.removeAllAttributes();
if (attributes_.getLength() != 0) {
attributes_.removeAllAttributes();
}
final int beginLineNumber = fBeginLineNumber;
final int beginColumnNumber = fBeginColumnNumber;
final int beginCharacterOffset = fBeginCharacterOffset;
Expand Down

0 comments on commit f203d9d

Please sign in to comment.