@@ -702,8 +702,7 @@ public static String nullSafeToString(@Nullable byte[] array) {
702
702
if (array == null ) {
703
703
return NULL_STRING ;
704
704
}
705
- int length = array .length ;
706
- if (length == 0 ) {
705
+ if (array .length == 0 ) {
707
706
return EMPTY_ARRAY ;
708
707
}
709
708
StringJoiner stringJoiner = new StringJoiner (ARRAY_ELEMENT_SEPARATOR , ARRAY_START , ARRAY_END );
@@ -726,8 +725,7 @@ public static String nullSafeToString(@Nullable char[] array) {
726
725
if (array == null ) {
727
726
return NULL_STRING ;
728
727
}
729
- int length = array .length ;
730
- if (length == 0 ) {
728
+ if (array .length == 0 ) {
731
729
return EMPTY_ARRAY ;
732
730
}
733
731
StringJoiner stringJoiner = new StringJoiner (ARRAY_ELEMENT_SEPARATOR , ARRAY_START , ARRAY_END );
@@ -750,8 +748,7 @@ public static String nullSafeToString(@Nullable double[] array) {
750
748
if (array == null ) {
751
749
return NULL_STRING ;
752
750
}
753
- int length = array .length ;
754
- if (length == 0 ) {
751
+ if (array .length == 0 ) {
755
752
return EMPTY_ARRAY ;
756
753
}
757
754
StringJoiner stringJoiner = new StringJoiner (ARRAY_ELEMENT_SEPARATOR , ARRAY_START , ARRAY_END );
@@ -774,8 +771,7 @@ public static String nullSafeToString(@Nullable float[] array) {
774
771
if (array == null ) {
775
772
return NULL_STRING ;
776
773
}
777
- int length = array .length ;
778
- if (length == 0 ) {
774
+ if (array .length == 0 ) {
779
775
return EMPTY_ARRAY ;
780
776
}
781
777
StringJoiner stringJoiner = new StringJoiner (ARRAY_ELEMENT_SEPARATOR , ARRAY_START , ARRAY_END );
@@ -798,8 +794,7 @@ public static String nullSafeToString(@Nullable int[] array) {
798
794
if (array == null ) {
799
795
return NULL_STRING ;
800
796
}
801
- int length = array .length ;
802
- if (length == 0 ) {
797
+ if (array .length == 0 ) {
803
798
return EMPTY_ARRAY ;
804
799
}
805
800
StringJoiner stringJoiner = new StringJoiner (ARRAY_ELEMENT_SEPARATOR , ARRAY_START , ARRAY_END );
@@ -846,8 +841,7 @@ public static String nullSafeToString(@Nullable short[] array) {
846
841
if (array == null ) {
847
842
return NULL_STRING ;
848
843
}
849
- int length = array .length ;
850
- if (length == 0 ) {
844
+ if (array .length == 0 ) {
851
845
return EMPTY_ARRAY ;
852
846
}
853
847
StringJoiner stringJoiner = new StringJoiner (ARRAY_ELEMENT_SEPARATOR , ARRAY_START , ARRAY_END );
0 commit comments