@@ -538,11 +538,11 @@ boolean startsWith(String self, String prefix, long start, long end) {
538
538
return doIt (self , prefix , correctIndex (start , self ), correctIndex (end , self ));
539
539
}
540
540
541
- @ Specialization (rewriteOn = ArithmeticException .class )
541
+ @ Specialization (rewriteOn = ArithmeticException .class )
542
542
boolean startsWith (String self , String prefix , PInt start , @ SuppressWarnings ("unused" ) PNone end ) {
543
543
return startsWith (self , prefix , start .intValueExact (), self .length ());
544
544
}
545
-
545
+
546
546
@ Specialization
547
547
boolean startsWithPIntOvf (String self , String prefix , PInt start , @ SuppressWarnings ("unused" ) PNone end ) {
548
548
return doIt (self , prefix , correctIndex (start , self ), self .length ());
@@ -568,16 +568,16 @@ boolean startsWith(String self, PTuple prefix, long start, long end) {
568
568
return doIt (self , prefix , correctIndex (start , self ), correctIndex (end , self ));
569
569
}
570
570
571
- @ Specialization (rewriteOn = ArithmeticException .class )
571
+ @ Specialization (rewriteOn = ArithmeticException .class )
572
572
boolean startsWith (String self , PTuple prefix , PInt start , @ SuppressWarnings ("unused" ) PNone end ) {
573
573
return startsWith (self , prefix , start .intValueExact (), end );
574
574
}
575
-
575
+
576
576
@ Specialization
577
577
boolean startsWithPIntOvf (String self , PTuple prefix , PInt start , @ SuppressWarnings ("unused" ) PNone end ) {
578
578
return doIt (self , prefix , correctIndex (start , self ), self .length ());
579
579
}
580
-
580
+
581
581
@ Specialization
582
582
boolean startsWith (String self , PTuple prefix , @ SuppressWarnings ("unused" ) PNone start , @ SuppressWarnings ("unused" ) PNone end ) {
583
583
return startsWith (self , prefix , 0 , self .length ());
0 commit comments