@@ -358,7 +358,7 @@ trait MarkupParser extends MarkupParserCommon with TokenTests {
358
358
}
359
359
nextch()
360
360
val str = cbuf.toString()
361
- cbuf.length = 0
361
+ cbuf.setLength( 0 )
362
362
str
363
363
}
364
364
@@ -390,7 +390,7 @@ trait MarkupParser extends MarkupParserCommon with TokenTests {
390
390
xToken(" --" )
391
391
while (! eof) {
392
392
if (ch == '-' && { sb.append(ch); nextch(); ch == '-' }) {
393
- sb.length = sb.length - 1
393
+ sb.setLength( sb.length - 1 )
394
394
nextch()
395
395
xToken('>' )
396
396
return handle.comment(pos, sb.toString())
@@ -608,7 +608,7 @@ trait MarkupParser extends MarkupParserCommon with TokenTests {
608
608
exit = eof || (ch == '<' ) || (ch == '&' )
609
609
}
610
610
val str = cbuf.toString
611
- cbuf.length = 0
611
+ cbuf.setLength( 0 )
612
612
str
613
613
}
614
614
@@ -630,7 +630,7 @@ trait MarkupParser extends MarkupParserCommon with TokenTests {
630
630
}
631
631
nextch()
632
632
val str = cbuf.toString()
633
- cbuf.length = 0
633
+ cbuf.setLength( 0 )
634
634
str
635
635
}
636
636
@@ -653,7 +653,7 @@ trait MarkupParser extends MarkupParserCommon with TokenTests {
653
653
}
654
654
nextch()
655
655
val str = cbuf.toString
656
- cbuf.length = 0
656
+ cbuf.setLength( 0 )
657
657
str
658
658
}
659
659
@@ -799,7 +799,7 @@ trait MarkupParser extends MarkupParserCommon with TokenTests {
799
799
// Console.println("END["+ch+"]")
800
800
nextch()
801
801
val cmstr = cbuf.toString()
802
- cbuf.length = 0
802
+ cbuf.setLength( 0 )
803
803
handle.elemDecl(n, cmstr)
804
804
}
805
805
@@ -826,7 +826,7 @@ trait MarkupParser extends MarkupParserCommon with TokenTests {
826
826
nextch()
827
827
}
828
828
val atpe = cbuf.toString
829
- cbuf.length = 0
829
+ cbuf.setLength( 0 )
830
830
831
831
val defdecl : DefaultDecl = ch match {
832
832
case '\' ' | '"' =>
@@ -846,7 +846,7 @@ trait MarkupParser extends MarkupParserCommon with TokenTests {
846
846
xSpaceOpt()
847
847
848
848
attList ::= AttrDecl (aname, atpe, defdecl)
849
- cbuf.length = 0
849
+ cbuf.setLength( 0 )
850
850
}
851
851
nextch()
852
852
handle.attListDecl(n, attList.reverse)
0 commit comments