Skip to content

Commit e1dd365

Browse files
committed
Mozilla bug 1466449 follow-up - Make the code compile as Java again by marking some lines CPPONLY.
1 parent 9bd65bf commit e1dd365

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ public boolean isOptionalEndTag() {
100100
this.flags = 0;
101101
this.name = null;
102102
this.popName = null;
103-
this.ns = 0;
103+
// CPPONLY: this.ns = 0;
104104
this.node = null;
105105
this.attributes = null;
106106
this.refcount = 0;
107-
this.htmlCreator = null;
107+
// CPPONLY: this.htmlCreator = null;
108108
}
109109

110110
// CPPONLY: public @HtmlCreator Object getHtmlCreator() {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ public Tokenizer(TokenHandler tokenHandler, boolean newAttributesEachTime) {
565565
this.shouldSuspend = false;
566566
this.confident = false;
567567
this.line = 0;
568-
this.attributeLine = 0;
568+
// CPPONLY: this.attributeLine = 0;
569569
this.interner = null;
570570
}
571571

@@ -626,7 +626,7 @@ public Tokenizer(TokenHandler tokenHandler
626626
this.shouldSuspend = false;
627627
this.confident = false;
628628
this.line = 0;
629-
this.attributeLine = 0;
629+
// CPPONLY: this.attributeLine = 0;
630630
this.interner = null;
631631
// CPPONLY: this.viewingXmlSource = viewingXmlSource;
632632
}

0 commit comments

Comments
 (0)