FasterXML / jackson-core

@@ -1,6 +1,7 @@
Loading
1 1
package tools.jackson.core.io;
2 2
3 3
import java.math.BigDecimal;
4 +
import java.math.BigInteger;
4 5
5 6
import tools.jackson.core.io.doubleparser.FastDoubleParser;
6 7
import tools.jackson.core.io.doubleparser.FastFloatParser;
@@ -373,4 +374,14 @@
Loading
373 374
    public static BigDecimal parseBigDecimal(char[] ch) throws NumberFormatException {
374 375
        return BigDecimalParser.parse(ch);
375 376
    }
377 +
378 +
    /**
379 +
     * @param s a string representing a number to parse
380 +
     * @return a BigInteger
381 +
     * @throws NumberFormatException if string cannot be represented by a BigInteger
382 +
     * @since v2.14
383 +
     */
384 +
    public static BigInteger parseBigInteger(String s) throws NumberFormatException {
385 +
        return new BigInteger(s);
386 +
    }
376 387
}

@@ -280,7 +280,7 @@
Loading
280 280
                    _numTypesValid = NR_DOUBLE;
281 281
                } else {
282 282
                    // nope, need the heavy guns... (rare case)
283 -
                    _numberBigInt = new BigInteger(numStr);
283 +
                    _numberBigInt = NumberInput.parseBigInteger(numStr);
284 284
                    _numTypesValid = NR_BIGINT;
285 285
                }
286 286
            }
Files Complexity Coverage
src/main/java/tools/jackson/core 67.88% 73.35%
Project Totals (114 files) 67.88% 73.35%
3116220286
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading