@@ -2851,8 +2851,7 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
28512851 continue stateloop ;
28522852 case '<' :
28532853 appendStrBuf (c );
2854- state = transition (state , Tokenizer .COMMENT_LESSTHAN , reconsume , pos );
2855- continue stateloop ;
2854+ continue ;
28562855 case '-' :
28572856 appendStrBuf (c );
28582857 state = transition (state , Tokenizer .COMMENT_END_DASH , reconsume , pos );
@@ -2865,13 +2864,14 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
28652864 continue ;
28662865 case '\u0000' :
28672866 c = '\uFFFD' ;
2868- // fall thru
2867+ // CPPONLY: MOZ_FALLTHROUGH;
28692868 default :
28702869 appendStrBuf (c );
28712870 state = transition (state , Tokenizer .COMMENT , reconsume , pos );
28722871 continue stateloop ;
28732872 }
28742873 }
2874+ // CPPONLY: MOZ_FALLTHROUGH;
28752875 case COMMENT_LESSTHAN_BANG :
28762876 for (;;) {
28772877 if (++pos == endPos ) {
@@ -2895,13 +2895,14 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
28952895 continue ;
28962896 case '\u0000' :
28972897 c = '\uFFFD' ;
2898- // fall thru
2898+ // CPPONLY: MOZ_FALLTHROUGH;
28992899 default :
29002900 appendStrBuf (c );
29012901 state = transition (state , Tokenizer .COMMENT , reconsume , pos );
29022902 continue stateloop ;
29032903 }
29042904 }
2905+ // CPPONLY: MOZ_FALLTHROUGH;
29052906 case COMMENT_LESSTHAN_BANG_DASH :
29062907 for (;;) {
29072908 if (++pos == endPos ) {
@@ -2925,13 +2926,14 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
29252926 continue ;
29262927 case '\u0000' :
29272928 c = '\uFFFD' ;
2928- // fall thru
2929+ // CPPONLY: MOZ_FALLTHROUGH;
29292930 default :
29302931 appendStrBuf (c );
29312932 state = transition (state , Tokenizer .COMMENT , reconsume , pos );
29322933 continue stateloop ;
29332934 }
29342935 }
2936+ // CPPONLY: MOZ_FALLTHROUGH;
29352937 case COMMENT_LESSTHAN_BANG_DASH_DASH :
29362938 for (;;) {
29372939 if (++pos == endPos ) {
@@ -2964,7 +2966,7 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
29642966 continue ;
29652967 case '\u0000' :
29662968 c = '\uFFFD' ;
2967- // fall thru
2969+ // CPPONLY: MOZ_FALLTHROUGH;
29682970 case '!' :
29692971 errNestedComment ();
29702972 adjustDoubleHyphenAndAppendToStrBufAndErr (c , reportedConsecutiveHyphens );
@@ -2979,6 +2981,7 @@ private void ensureBufferSpace(int inputLength) throws SAXException {
29792981 continue stateloop ;
29802982 }
29812983 }
2984+ // CPPONLY: MOZ_FALLTHROUGH;
29822985 // XXX reorder point
29832986 case COMMENT_START_DASH :
29842987 if (++pos == endPos ) {
0 commit comments