Skip to content

Commit 893b963

Browse files
committed
Add org.apache.commons.lang3.ArrayUtils.SOFT_MAX_ARRAY_LENGTH
Update release version to next feature version
1 parent fc2ff10 commit 893b963

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/changes/changes.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The <action> type attribute can be add,update,fix,remove.
4444
<title>Apache Commons Lang Release Notes</title>
4545
</properties>
4646
<body>
47-
<release version="3.18.1" date="YYYY-MM-DD" description="This is a feature and maintenance release. Java 8 or later is required.">
47+
<release version="3.19.0" date="YYYY-MM-DD" description="This is a feature and maintenance release. Java 8 or later is required.">
4848
<!-- FIX -->
4949
<action type="fix" dev="ppkarwasz" due-to="Sebastian Steiner">[javadoc] Fix typo in Javadoc of Strings instances #1406.</action>
5050
<action type="fix" dev="ggregory" due-to="Hassan A Hashim">[javadoc] Fix Javadocs in ClassUtils #1410.</action>
@@ -57,6 +57,7 @@ The <action> type attribute can be add,update,fix,remove.
5757
<action type="fix" dev="ggregory" due-to="Gary Gregory">General Javadoc improvements.</action>
5858
<action issue="LANG-1780" type="fix" dev="ggregory" due-to="tza">Fix Strings Javadoc #1419.</action>
5959
<!-- ADD -->
60+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Add org.apache.commons.lang3.ArrayUtils.SOFT_MAX_ARRAY_LENGTH.</action>
6061
<!-- UPDATE -->
6162
<action type="update" dev="ggregory" due-to="Gary Gregory">[test] Bump org.apache.commons:commons-text from 1.13.1 to 1.14.0.</action>
6263
</release>

src/main/java/org/apache/commons/lang3/ArrayUtils.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,13 @@ public class ArrayUtils {
190190
*/
191191
public static final int INDEX_NOT_FOUND = -1;
192192

193+
/**
194+
* The {@code SOFT_MAX_ARRAY_LENGTH} constant from Java's internal ArraySupport class.
195+
*
196+
* @since 3.19.0
197+
*/
198+
public static int SOFT_MAX_ARRAY_LENGTH = Integer.MAX_VALUE - 8;
199+
193200
/**
194201
* Copies the given array and adds the given element at the end of the new array.
195202
* <p>

0 commit comments

Comments
 (0)