@@ -2851,9 +2851,9 @@ public static String bitor_s(String a, String b) {
2851
2851
StringBuilder r = new StringBuilder (mlength );
2852
2852
int apos = 0 ;
2853
2853
int bpos = 0 ;
2854
- while (apos < alength || bpos < blength ) {
2855
- int cpa = apos < alength ? a .codePointAt (apos ) : 0 ;
2856
- int cpb = bpos < blength ? b .codePointAt (bpos ) : 0 ;
2854
+ while (apos < alength && bpos < blength ) {
2855
+ int cpa = a .codePointAt (apos );
2856
+ int cpb = b .codePointAt (bpos );
2857
2857
r .appendCodePoint (cpa | cpb );
2858
2858
apos += Character .charCount (cpa );
2859
2859
bpos += Character .charCount (cpb );
@@ -2868,9 +2868,9 @@ public static String bitxor_s(String a, String b) {
2868
2868
StringBuilder r = new StringBuilder (mlength );
2869
2869
int apos = 0 ;
2870
2870
int bpos = 0 ;
2871
- while (apos < alength || bpos < blength ) {
2872
- int cpa = apos < alength ? a .codePointAt (apos ) : 0 ;
2873
- int cpb = bpos < blength ? b .codePointAt (bpos ) : 0 ;
2871
+ while (apos < alength && bpos < blength ) {
2872
+ int cpa = a .codePointAt (apos );
2873
+ int cpb = b .codePointAt (bpos );
2874
2874
r .appendCodePoint (cpa ^ cpb );
2875
2875
apos += Character .charCount (cpa );
2876
2876
bpos += Character .charCount (cpb );
@@ -2885,9 +2885,9 @@ public static String bitand_s(String a, String b) {
2885
2885
StringBuilder r = new StringBuilder (mlength );
2886
2886
int apos = 0 ;
2887
2887
int bpos = 0 ;
2888
- while (apos < alength || bpos < blength ) {
2889
- int cpa = apos < alength ? a .codePointAt (apos ) : 0 ;
2890
- int cpb = bpos < blength ? b .codePointAt (bpos ) : 0 ;
2888
+ while (apos < alength && bpos < blength ) {
2889
+ int cpa = a .codePointAt (apos );
2890
+ int cpb = b .codePointAt (bpos );
2891
2891
r .appendCodePoint (cpa & cpb );
2892
2892
apos += Character .charCount (cpa );
2893
2893
bpos += Character .charCount (cpb );
0 commit comments