From 940b79b59c7e3b6db1d7ff64ce3350ded1481e61 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 2 Jun 2022 07:18:36 -0400 Subject: [PATCH] Allow extension of previously final classes ImmutablePair and ImmutableTriple --- src/changes/changes.xml | 1 + src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java | 2 +- .../java/org/apache/commons/lang3/tuple/ImmutableTriple.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 2d93a94b5..5a0cc9d91 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -85,6 +85,7 @@ The type attribute can be add,update,fix,remove. Increase method test coverage of MultilineRecursiveToStringStyle #899. Fix unstable coverage of CharSequenceUtils tests noticed during merge of PRs 898 and 899 #901. Rewrite Conversion.binaryBeMsb0ToHexDigit to invert logic of binaryToHexDigit. + Allow extension of previously final classes ImmutablePair and ImmutableTriple. Add EnumUtils.getEnumSystemProperty(...). Add TriConsumer. diff --git a/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java b/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java index 950244be9..d77f0e33e 100644 --- a/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java +++ b/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java @@ -34,7 +34,7 @@ import java.util.Objects; * * @since 3.0 */ -public final class ImmutablePair extends Pair { +public class ImmutablePair extends Pair { /** * An empty array. diff --git a/src/main/java/org/apache/commons/lang3/tuple/ImmutableTriple.java b/src/main/java/org/apache/commons/lang3/tuple/ImmutableTriple.java index 91510915b..ecac4a3c3 100644 --- a/src/main/java/org/apache/commons/lang3/tuple/ImmutableTriple.java +++ b/src/main/java/org/apache/commons/lang3/tuple/ImmutableTriple.java @@ -34,7 +34,7 @@ import java.util.Objects; * * @since 3.2 */ -public final class ImmutableTriple extends Triple { +public class ImmutableTriple extends Triple { /** * An empty array.