File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -3013,24 +3013,4 @@ private static JSONException recursivelyDefinedObjectException(String key) {
30133013 "JavaBean object contains recursively defined member variable of key " + quote (key )
30143014 );
30153015 }
3016-
3017- /**
3018- * For a prospective number, remove the leading zeros
3019- * @param value prospective number
3020- * @return number without leading zeros
3021- */
3022- private static String removeLeadingZerosOfNumber (String value ){
3023- if ("-" .equals (value )){return value ;}
3024- boolean negativeFirstChar = (value .charAt (0 ) == '-' );
3025- int counter = negativeFirstChar ? 1 :0 ;
3026- while (counter < value .length ()){
3027- if (value .charAt (counter ) != '0' ){
3028- if (negativeFirstChar ) {return "-" .concat (value .substring (counter ));}
3029- return value .substring (counter );
3030- }
3031- ++counter ;
3032- }
3033- if (negativeFirstChar ) {return "-0" ;}
3034- return "0" ;
3035- }
30363016}
You can’t perform that action at this time.
0 commit comments