From abe035c5563d00d40072452a8a1c430356dd30a9 Mon Sep 17 00:00:00 2001 From: joehni Date: Mon, 21 Oct 2024 22:00:29 +0200 Subject: [PATCH] Replace FastField with nested maps. Closes #350. --- xstream-distribution/src/content/changes.html | 3 +- xstream-distribution/src/content/team.html | 3 +- .../extended/ToAttributedValueConverter.java | 51 +++++----- .../javabean/JavaBeanConverter.java | 22 ++--- .../AbstractReflectionConverter.java | 36 +++---- .../reflection/SerializableConverter.java | 4 +- .../xstream/core/util/FastField.java | 63 ------------ .../xstream/core/util/MemberDictionary.java | 69 +++++++++++++ .../xstream/core/util/MemberStore.java | 98 +++++++++++++++++++ .../core/util/SerializationMembers.java | 70 ++++++------- .../xstream/mapper/ElementIgnoringMapper.java | 25 ++--- .../xstream/mapper/FieldAliasingMapper.java | 33 +++---- .../xstream/mapper/LocalConversionMapper.java | 19 ++-- 13 files changed, 281 insertions(+), 215 deletions(-) delete mode 100644 xstream/src/java/com/thoughtworks/xstream/core/util/FastField.java create mode 100644 xstream/src/java/com/thoughtworks/xstream/core/util/MemberDictionary.java create mode 100644 xstream/src/java/com/thoughtworks/xstream/core/util/MemberStore.java diff --git a/xstream-distribution/src/content/changes.html b/xstream-distribution/src/content/changes.html index 1e0a3fe4d..24759f883 100644 --- a/xstream-distribution/src/content/changes.html +++ b/xstream-distribution/src/content/changes.html @@ -111,6 +111,7 @@

Upcoming 1.4.x maintenance release

Major changes

@@ -122,7 +123,7 @@

Minor changes

  • GHPR:#331, GHI:#326: Fix handling of empty java.util.concurrent.atomic.AtomicReference (by Alex Blekhman of Atlassian).
  • GHPR:#334: Fix remaining buffer size calculation in QuickWriter (by Higuchi Yuta).
  • GHI:#342: Optimize internal handling of children in DomReader avoiding O(n²) access times for siblings (by Shiang-Yun Yang).
  • -
  • GHPR:#349: Fix support of lambda objects for Java 21 and above (Tobias Gierke).
  • +
  • GHPR:#349: Fix support of lambda objects for Java 21 and above (by Tobias Gierke).
  • GHI:#359: Add KEYS file with public keys to verify signed artifacts.
  • Detect input manipulation in c.t.x.io.binary.BinaryStreamReader.
  • diff --git a/xstream-distribution/src/content/team.html b/xstream-distribution/src/content/team.html index d1cefbce8..06a556c90 100644 --- a/xstream-distribution/src/content/team.html +++ b/xstream-distribution/src/content/team.html @@ -1,7 +1,7 @@