This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit efb9b44acdb4a493f4ca240c84534fcbc72b832f Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Jan 25 09:56:19 2024 -0500 Document deprecations - Deprecate DurationUtils 0-argument constructor - Deprecate DurationFormatUtils 0-argument constructor - Deprecate DateUtils 0-argument constructor - Deprecate DateFormatUtils 0-argument constructor - Deprecate Streams 0-argument constructor - Deprecate IntStreams 0-argument constructor - Deprecate TypeUtils 0-argument constructor - Deprecate MethodUtils 0-argument constructor - Deprecate MemberUtils 0-argument constructor - Deprecate InheritanceUtils 0-argument constructor - Deprecate FieldUtils 0-argument constructor - Deprecate ConstructorUtils 0-argument constructor - Deprecate NumberUtils 0-argument constructor - Deprecate IEEE754rUtils 0-argument constructor - Deprecate Suppliers 0-argument constructor - Deprecate EventUtils 0-argument constructor - Deprecate LockingVisitors 0-argument constructor - Deprecate ThreadUtils 0-argument constructor - Deprecate SystemProperties 0-argument constructor - Deprecate StringUtils 0-argument constructor - Deprecate StringEscapeUtils 0-argument constructor - Deprecate SerializationUtils 0-argument constructor - Deprecate RegExUtils 0-argument constructor - Deprecate RandomUtils 0-argument constructor - Deprecate RandomStringUtils 0-argument constructor - Deprecate ObjectUtils 0-argument constructor - Deprecate LocaleUtils 0-argument constructor - Deprecate EnumUtils 0-argument constructor - Deprecate ClassUtils 0-argument constructor - Deprecate ClassPathUtils 0-argument constructor - Deprecate ClassLoaderUtils 0-argument constructor - Deprecate CharUtils 0-argument constructor - Deprecate CharSetUtils 0-argument constructor - Deprecate CharSequenceUtils 0-argument constructor - Deprecate BooleanUtils 0-argument constructor - Deprecate ArrayUtils 0-argument constructor - Deprecate ArchUtils 0-argument constructor - Deprecate AnnotationUtils 0-argument constructor --- src/changes/changes.xml | 46 ++++++++++++++++++++-- .../org/apache/commons/lang3/stream/Streams.java | 2 +- 2 files changed, 43 insertions(+), 5 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 7c4aead49..e44e705f3 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -65,14 +65,52 @@ The <action> type attribute can be add,update,fix,remove. <action issue="LANG-1726" type="fix" dev="ggregory" due-to="Václav Haisman, Gary Gregory">Undeprecate ExceptionUtils.rethrow(Throwable).</action> <action issue="LANG-1702" type="fix" dev="ggregory" due-to="Elliotte Rusty Harold">Test the Conversion class #1155.</action> <action type="fix" dev="ggregory" due-to="ParanoidUser, Elliotte Rusty Harold, Gary Gregory">Address minor redundancies after code inspection #1148.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate AnnotationUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ArchUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ArrayUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate BooleanUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate CharSequenceUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate CharSetUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate CharUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ClassLoaderUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ClassPathUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ClassUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ConstructorUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate DateFormatUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate DateUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate Diff.getType().</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate DiffBuilder.DiffBuilder(T, T, ToStringStyle).</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate DiffBuilder.DiffBuilder(T, T, ToStringStyle, boolean).</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate DurationFormatUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate DurationUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate EnumUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate EventUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate FieldUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate IEEE754rUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate InheritanceUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate IntStreams 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate LocaleUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate LockingVisitors 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate MemberUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate MethodUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate NumberUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ObjectUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate RandomStringUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate RandomUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ReflectionDiffBuilder.ReflectionDiffBuilder(T, T, ToStringStyle).</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate RegExUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate SerializationUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate Streams 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate StringEscapeUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate StringUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate Suppliers 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate SystemProperties 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ThreadUtils 0-argument constructor.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate TypeUtils 0-argument constructor.</action> <!-- UPDATE --> <action type="update" dev="sebb" due-to="Dependabot">Bump commons-parent from 64 to 65.</action> <!-- REMOVE --> <action type="remove" dev="ggregory" due-to="Paranoïd User">Drop obsolete JDK 13 Maven profile #1142.</action> - <action type="remove" dev="ggregory" due-to="Gary Gregory">Deprecate Diff.getType().</action> - <action type="remove" dev="ggregory" due-to="Gary Gregory">Deprecate DiffBuilder.DiffBuilder(T, T, ToStringStyle).</action> - <action type="remove" dev="ggregory" due-to="Gary Gregory">Deprecate DiffBuilder.DiffBuilder(T, T, ToStringStyle, boolean).</action> - <action type="remove" dev="ggregory" due-to="Gary Gregory">Deprecate ReflectionDiffBuilder.ReflectionDiffBuilder(T, T, ToStringStyle).</action> </release> <release version="3.14.0" date="2023-11-18" description="New features and bug fixes (Java 8 or above)."> <!-- FIX --> diff --git a/src/main/java/org/apache/commons/lang3/stream/Streams.java b/src/main/java/org/apache/commons/lang3/stream/Streams.java index d3e0271c4..97f8321ca 100644 --- a/src/main/java/org/apache/commons/lang3/stream/Streams.java +++ b/src/main/java/org/apache/commons/lang3/stream/Streams.java @@ -826,7 +826,7 @@ public class Streams { public static <T> Collector<T, ?, T[]> toArray(final Class<T> pElementType) { return new ArrayCollector<>(pElementType); } - + /** * Make private in 4.0. *