public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/jackson-core] rawhide: Update patch for new code version
@ 2026-07-14 15:24 Marco Fargetta
0 siblings, 0 replies; only message in thread
From: Marco Fargetta @ 2026-07-14 15:24 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/jackson-core
Branch : rawhide
Commit : 8194704fae4e77c0e6ceefc727497d45858399bd
Author : Marco Fargetta <mfargett@redhat.com>
Date : 2026-07-14T17:24:04+02:00
Stats : +53/-34 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/jackson-core/c/8194704fae4e77c0e6ceefc727497d45858399bd?branch=rawhide
Log:
Update patch for new code version
---
diff --git a/0001-Remove-ch.randelshofer.fastdoubleparser.patch b/0001-Remove-ch.randelshofer.fastdoubleparser.patch
index f500399..1e70712 100644
--- a/0001-Remove-ch.randelshofer.fastdoubleparser.patch
+++ b/0001-Remove-ch.randelshofer.fastdoubleparser.patch
@@ -1,33 +1,34 @@
-From f579146e4ab6ae625a1b09ecd1964a672f57f70d Mon Sep 17 00:00:00 2001
-From: Chris Kelley <ckelley@redhat.com>
-Date: Fri, 27 Sep 2024 10:48:17 +0100
-Subject: [PATCH] Remove ch.randelshofer.fastdoubleparser
+From ddc1f5588ca7634e5a8aab30cfdb8ce3eb06d360 Mon Sep 17 00:00:00 2001
+From: Marco Fargetta <mfargett@redhat.com>
+Date: Tue, 15 Jul 2025 18:03:33 +0200
+Subject: [PATCH] Remove ch.randelshofer.fastdoubleparser library
---
- .../jackson/core/io/BigDecimalParser.java | 55 +------------------
- .../jackson/core/io/BigIntegerParser.java | 41 --------------
- .../jackson/core/io/NumberInput.java | 29 +---------
- .../jackson/core/io/BigDecimalParserTest.java | 7 +--
- .../jackson/core/io/BigIntegerParserTest.java | 54 ------------------
- .../core/io/doubleparser/ReaderTest.java | 42 --------------
- 6 files changed, 8 insertions(+), 220 deletions(-)
+ .../jackson/core/io/BigDecimalParser.java | 59 ++-----------------
+ .../jackson/core/io/BigIntegerParser.java | 41 -------------
+ .../jackson/core/io/NumberInput.java | 29 +--------
+ .../jackson/core/io/BigDecimalParserTest.java | 11 ++--
+ .../jackson/core/io/BigIntegerParserTest.java | 54 -----------------
+ .../core/io/doubleparser/ReaderTest.java | 42 -------------
+ 6 files changed, 12 insertions(+), 224 deletions(-)
delete mode 100644 src/main/java/com/fasterxml/jackson/core/io/BigIntegerParser.java
delete mode 100644 src/test/java/com/fasterxml/jackson/core/io/BigIntegerParserTest.java
delete mode 100644 src/test/java/com/fasterxml/jackson/core/io/doubleparser/ReaderTest.java
diff --git a/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java b/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java
-index 2be42744..21845596 100644
+index 913c4ce7..d4b8ee2e 100644
--- a/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java
+++ b/src/main/java/com/fasterxml/jackson/core/io/BigDecimalParser.java
-@@ -1,7 +1,5 @@
- package com.fasterxml.jackson.core.io;
+@@ -2,8 +2,6 @@ package com.fasterxml.jackson.core.io;
--import ch.randelshofer.fastdoubleparser.JavaBigDecimalParser;
--
import java.math.BigDecimal;
+-import ch.randelshofer.fastdoubleparser.JavaBigDecimalParser;
+-
/**
-@@ -42,13 +40,7 @@ public final class BigDecimalParser
+ * Internal Jackson Helper class used to implement more optimized parsing of {@link BigDecimal} for REALLY
+ * big values (over 500 characters).
+@@ -42,14 +40,8 @@ public final class BigDecimalParser
*/
public static BigDecimal parse(String valueStr) {
try {
@@ -38,11 +39,13 @@ index 2be42744..21845596 100644
-
- // 20-Aug-2022, tatu: Although "new BigDecimal(...)" only throws NumberFormatException
- // operations by "parseBigDecimal()" can throw "ArithmeticException", so handle both:
+- } catch (ArithmeticException | NumberFormatException e) {
+ return new BigDecimal(valueStr);
- } catch (ArithmeticException | NumberFormatException e) {
++ } catch (NumberFormatException e) {
throw _parseFailure(e, valueStr);
}
-@@ -66,13 +58,7 @@ public final class BigDecimalParser
+ }
+@@ -66,14 +58,8 @@ public final class BigDecimalParser
*/
public static BigDecimal parse(final char[] chars, final int off, final int len) {
try {
@@ -53,10 +56,12 @@ index 2be42744..21845596 100644
-
- // 20-Aug-2022, tatu: Although "new BigDecimal(...)" only throws NumberFormatException
- // operations by "parseBigDecimal()" can throw "ArithmeticException", so handle both:
+- } catch (ArithmeticException | NumberFormatException e) {
+ return new BigDecimal(chars, off, len);
- } catch (ArithmeticException | NumberFormatException e) {
++ } catch (NumberFormatException e) {
throw _parseFailure(e, chars, off, len);
}
+ }
@@ -93,43 +79,6 @@ public final class BigDecimalParser
return parse(chars, 0, chars.length);
}
@@ -103,16 +108,16 @@ index 2be42744..21845596 100644
// 05-Feb-2021, tatu: Alas, JDK mostly has null message so:
diff --git a/src/main/java/com/fasterxml/jackson/core/io/BigIntegerParser.java b/src/main/java/com/fasterxml/jackson/core/io/BigIntegerParser.java
deleted file mode 100644
-index 777c3f45..00000000
+index be61ef1b..00000000
--- a/src/main/java/com/fasterxml/jackson/core/io/BigIntegerParser.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package com.fasterxml.jackson.core.io;
-
--import ch.randelshofer.fastdoubleparser.JavaBigIntegerParser;
--
-import java.math.BigInteger;
-
+-import ch.randelshofer.fastdoubleparser.JavaBigIntegerParser;
+-
-import static com.fasterxml.jackson.core.io.BigDecimalParser.MAX_CHARS_TO_REPORT;
-
-/**
@@ -149,18 +154,19 @@ index 777c3f45..00000000
- }
-}
diff --git a/src/main/java/com/fasterxml/jackson/core/io/NumberInput.java b/src/main/java/com/fasterxml/jackson/core/io/NumberInput.java
-index 5cef8dbb..4db891ea 100644
+index 9656294d..4db891ea 100644
--- a/src/main/java/com/fasterxml/jackson/core/io/NumberInput.java
+++ b/src/main/java/com/fasterxml/jackson/core/io/NumberInput.java
-@@ -1,8 +1,5 @@
- package com.fasterxml.jackson.core.io;
+@@ -4,9 +4,6 @@ import java.math.BigDecimal;
+ import java.math.BigInteger;
+ import java.util.regex.Pattern;
-import ch.randelshofer.fastdoubleparser.JavaDoubleParser;
-import ch.randelshofer.fastdoubleparser.JavaFloatParser;
-
- import java.math.BigDecimal;
- import java.math.BigInteger;
- import java.util.regex.Pattern;
+ /**
+ * Helper class for efficient parsing of various JSON numbers.
+ *<p>
@@ -407,7 +404,7 @@ public final class NumberInput
* @since v2.14
*/
@@ -251,7 +257,7 @@ index 5cef8dbb..4db891ea 100644
}
diff --git a/src/test/java/com/fasterxml/jackson/core/io/BigDecimalParserTest.java b/src/test/java/com/fasterxml/jackson/core/io/BigDecimalParserTest.java
-index 9ec4cc6c..6698ff44 100644
+index 9ec4cc6c..b067bad0 100644
--- a/src/test/java/com/fasterxml/jackson/core/io/BigDecimalParserTest.java
+++ b/src/test/java/com/fasterxml/jackson/core/io/BigDecimalParserTest.java
@@ -2,7 +2,6 @@ package com.fasterxml.jackson.core.io;
@@ -282,6 +288,19 @@ index 9ec4cc6c..6698ff44 100644
}
@Test
+@@ -58,10 +57,10 @@ class BigDecimalParserTest extends com.fasterxml.jackson.core.JUnit5TestBase
+ final BigDecimal expected = new BigDecimal(str);
+ assertEquals(expected, JavaBigDecimalParser.parseBigDecimal(str));
+ assertEquals(expected, BigDecimalParser.parse(str));
+- assertEquals(expected, BigDecimalParser.parseWithFastParser(str));
++ assertEquals(expected, BigDecimalParser.parse(str));
+ final char[] arr = str.toCharArray();
+ assertEquals(expected, BigDecimalParser.parse(arr, 0, arr.length));
+- assertEquals(expected, BigDecimalParser.parseWithFastParser(arr, 0, arr.length));
++ assertEquals(expected, BigDecimalParser.parse(arr, 0, arr.length));
+ }
+
+ static String genLongInvalidString() {
diff --git a/src/test/java/com/fasterxml/jackson/core/io/BigIntegerParserTest.java b/src/test/java/com/fasterxml/jackson/core/io/BigIntegerParserTest.java
deleted file mode 100644
index a515f656..00000000
@@ -344,18 +363,18 @@ index a515f656..00000000
-}
diff --git a/src/test/java/com/fasterxml/jackson/core/io/doubleparser/ReaderTest.java b/src/test/java/com/fasterxml/jackson/core/io/doubleparser/ReaderTest.java
deleted file mode 100644
-index 2c105c4b..00000000
+index 4b56b9f0..00000000
--- a/src/test/java/com/fasterxml/jackson/core/io/doubleparser/ReaderTest.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package com.fasterxml.jackson.core.io.doubleparser;
-
+-import java.util.Random;
+-
-import ch.randelshofer.fastdoubleparser.JavaDoubleParser;
-import ch.randelshofer.fastdoubleparser.JavaFloatParser;
-import org.junit.jupiter.api.Test;
-
--import java.util.Random;
--
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
-class ReaderTest {
@@ -392,5 +411,5 @@ index 2c105c4b..00000000
-}
\ No newline at end of file
--
-2.45.2
+2.50.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-14 15:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-14 15:24 [rpms/jackson-core] rawhide: Update patch for new code version Marco Fargetta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox