Skip to content

Commit d404c4a

Browse files
Jonathan Kingstonhsivonen
authored andcommitted
Bug 1466449 - Change endTagExpectationAsArray to null initialisation. r=hsivonen.
1 parent e1dd365 commit d404c4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nu/validator/htmlparser/impl/Tokenizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ public Tokenizer(TokenHandler tokenHandler, boolean newAttributesEachTime) {
551551
this.bmpChar = new char[1];
552552
this.astralChar = new char[2];
553553
this.endTagExpectation = null;
554-
this.endTagExpectationAsArray = new char[0];
554+
this.endTagExpectationAsArray = null;
555555
this.endTag = false;
556556
this.containsHyphen = false;
557557
this.tagName = null;
@@ -608,7 +608,7 @@ public Tokenizer(TokenHandler tokenHandler
608608
this.bmpChar = new char[1];
609609
this.astralChar = new char[2];
610610
this.endTagExpectation = null;
611-
this.endTagExpectationAsArray = new char[0];
611+
this.endTagExpectationAsArray = null;
612612
this.endTag = false;
613613
this.containsHyphen = false;
614614
this.tagName = null;

0 commit comments

Comments
 (0)