Accepting request 942355 from home:david.anes:branches:Java:packages

Update to 3.12.0

OBS-URL: https://build.opensuse.org/request/show/942355
OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-lang3?expand=0&rev=27
This commit is contained in:
David Anes 2021-12-27 08:36:35 +00:00 committed by Git OBS Bridge
parent 66ce15e688
commit f06110c20b
4 changed files with 214 additions and 6 deletions

View File

@ -1,3 +1,211 @@
-------------------------------------------------------------------
Fri Dec 24 14:28:12 UTC 2021 - David Anes <david.anes@suse.com>
- Updated download URL.
- Update to 3.12.0:
- New features:
* Add BooleanUtils.booleanValues().
* Add BooleanUtils.primitiveValues().
* Add StringUtils.containsAnyIgnoreCase(CharSequence, CharSequence...).
* Add StopWatch.getStopTime().
* More test coverage for CharSequenceUtils.
* Add fluent-style ArraySorter.
* Add and use LocaleUtils.toLocale(Locale) to avoid NPEs.
* Add FailableShortSupplier, handy for JDBC APIs.
* Add JavaVersion.JAVA_17.
* Add missing boolean[] join method.
* Add StringUtils.substringBefore(String, int).
* Add Range.INTEGER.
* Add DurationUtils.
* Introduce the use of @Nonnull, and @Nullable, and the Objects class as a helper tool.
* Add and use true and false String constants.
* Add and use ObjectUtils.requireNonEmpty().
- Fixed Bugs:
* Correct implementation of RandomUtils.nextLong(long, long).
* Restore handling of collections for non-JSON ToStringStyle.
* ContextedException Javadoc add missing semicolon.
* Resolve JUnit pioneer transitive dependencies using JUnit BOM.
* NumberUtilsTest - incorrect types in min/max tests.
* Improve StringUtils.stripAccents conversion of remaining accents.
* StringUtils.countMatches - clarify Javadoc.
* Remove redundant argument from substring call.
* BigDecimal is created when you pass it the min and max values.
* ArrayUtils.contains() and indexOf() fail to handle Double.NaN.
* ArrayUtils contains() and indexOf() fail to handle Float.NaN.
* Fix potential NPE in TypeUtils.isAssignable(Type, ParameterizedType, Map, Type>).
* TypeUtils.isAssignable returns wrong result for GenericArrayType and ParameterizedType.
* testGetAllFields and testGetFieldsWithAnnotation sometimes fail.
* Fix Javadoc for SystemUtils.isJavaVersionAtMost().
* Fix StringUtils.unwrap throws StringIndexOutOfBoundsException.
* Fix formatting of isAnyBlank() and isAnyEmpty().
* TypeUtils. containsTypeVariables does not support GenericArrayType.
* Javadoc of some methods incorrectly refers to another method.
* Refine StringUtils.lastIndexOfIgnoreCase.
* Refine StringUtils.abbreviate.
* Refine StringUtils.isNumericSpace.
* Refine StringUtils.deleteWhitespace.
* Correction in Javadoc of some methods.
* Javadoc for RandomStringUtils.random() letters, numbers parameters is wrong.
* Correct markup in Javadoc for unbalanced braces.
* MethodUtils.invokeMethod NullPointerException in case of null in args list.
* Fix 2 digit week year formatting.
* Fix broken Javadoc links to commons-text.
* Add and use ThreadUtils.sleep(Duration).
* Add and use ThreadUtils.join(Thread, Duration).
* Add ObjectUtils.wait(Duration).
- Changes:
* ArrayUtils.toPrimitive(Object) does not support boolean and other types.
* Enable Dependabot.
* Bump junit-jupiter from 5.6.2 to 5.7.0.
* Bump spotbugs from 4.1.2 to 4.2.1.
* Bump spotbugs-maven-plugin from 4.0.0 to 4.2.0.
* Bump biz.aQute.bndlib from 5.1.1 to 5.3.0.
* Bump junit-pioneer from 0.6.0 to 1.1.0.
* Bump checkstyle from 8.34 to 8.40.
* Bump actions/checkout from v2.3.1 to v2.3.4.
* Bump actions/setup-java from v1.4.0 to v1.4.2.
* Update commons.jacoco.version 0.8.5 to 0.8.6 (Fixes Java 15 builds).
* Update maven-surefire-plugin 2.22.2 -> 3.0.0-M5.
* Bump maven-pmd-plugin from 3.13.0 to 3.14.0.
* Bump jmh.version from 1.21 to 1.27.
* Update commons.japicmp.version 0.14.3 -> 0.15.2.
* Processor.java: check enum equality with == instead of .equals() method.
* Bump junit-pioneer from 1.1.0 to 1.3.0.
* Bump maven-checkstyle-plugin from 3.1.1 to 3.1.2.
* Bump actions/cache from v2 to v2.1.4.
* Bump junit-bom from 5.7.0 to 5.7.1.
* Minor Improvements.
* Minor Improvement: Add final variable.try to make the code read-only.
* Minor Improvement: Remove redundant initializer.
* Use own validator ObjectUtils.anyNull to check null String input.
- From 3.11 Update:
- New features:
* Add ArrayUtils.isSameLength() to compare more array types.
* Added the Locks class as a convenient possibility to deal with locked objects.
* Add to Functions: FailableBooleanSupplier, FailableIntSupplier, FailableLongSupplier, FailableDoubleSupplier, and so on.
* Add ArrayUtils.get(T[], index, T) to provide an out-of-bounds default value.
* Add JavaVersion enum constants for Java 14 and 15.
* Add JavaVersion enum constants for Java 16.
* Use Java 8 lambdas and Map operations.
* Change removeLastFieldSeparator to use endsWith.
* Change a Pattern to a static final field, for not letting it compile each time the function invoked.
* Add ImmutablePair factory methods left() and right().
* Add ObjectUtils.toString(Object, Supplier<String>).
* Add org.apache.commons.lang3.StringUtils.substringAfter(String, int).
* Add org.apache.commons.lang3.StringUtils.substringAfterLast(String, int).
- Fixed Bugs:
* Fix Javadoc for StringUtils.appendIfMissingIgnoreCase().
* Refine Javadoc.
* Fix typos
* Ignored exception `ignored`, should not be called so.
* StringUtils.replaceEachRepeatedly gives IllegalStateException.
* [JSON string for maps] ToStringBuilder.reflectionToString doesnt render nested maps correctly.
* Correct Javadocs of methods that use Validate.notNull() and replace some uses of Validate.isTrue() with Validate.notNull().
* Add allNull() and anyNull() methods to ObjectUtils.
- Changes:
* Refine test output for FastDateParserTest
* CharSequenceUtils.lastIndexOf : remake it
* remove encoding and docEncoding and use inherited values from commons-parent
* Simplify null checks in Pair.hashCode() using Objects.hashCode().
* Simplify null checks in Triple.hashCode() using Objects.hashCode().
* Simplify some if statements in StringUtils.
* Simplify a null check in the private replaceEach() method of StringUtils.
* Replace some usages of the ternary operator with calls to Math.max() and Math.min().
* (Javadoc) Fix return tag for throwableOf*() methods.
* CharSequenceUtils.regionMatches is wrong dealing with Georgian.
* Optimize ArrayUtils::isArrayIndexValid method.
* Use List.sort instead of Collection.sort.
* Use StandardCharsets.UTF_8.
* Use Collections.singletonList insteadof Arrays.asList when there be only one element.
* Change array style from `int a[]` to `int[] a`.
* Change from addAll to constructors for some List.
* Simplify if as some conditions are covered by others.
* Fixed Javadocs for setTestRecursive().
* ToStringBuilder.reflectionToString - Wrong JSON format when object has a List of Enum.
* Make org.apache.commons.lang3.CharSequenceUtils.toCharArray(CharSequence) public.
* org.apache.commons:commons-parent 50 -> 51.
* org.junit-pioneer:junit-pioneer 0.5.4 -> 0.6.0.
* org.junit.jupiter:junit-jupiter 5.6.0 -> 5.6.2.
* com.github.spotbugs:spotbugs 4.0.0 -> 4.0.6.
* com.puppycrawl.tools:checkstyle 8.29 -> 8.34.
* commons.surefire.version 3.0.0-M4 -> 3.0.0-M5..
- From 3.10 Update:
- New features:
* Add ExceptionUtils.throwableOfType(Throwable, Class) and friends.
* Add EMPTY_ARRAY constants to classes in org.apache.commons.lang3.tuple.
* Add null-safe StringUtils APIs to wrap String#getBytes([Charset|String]).
* Add zero arg constructor for org.apache.commons.lang3.NotImplementedException.
* Add ArrayUtils.addFirst() methods.
* Add Range.fit(T) to fit a value into a range.
* Added Functions.as*, and tests thereof, as suggested by Peter Verhas
* Add getters for lhs and rhs objects in DiffResult.
* Generify builder classes Diffable, DiffBuilder, and DiffResult.
* Add ClassLoaderUtils with toString() implementations.
* Add null-safe APIs as StringUtils.toRootLowerCase(String) and StringUtils.toRootUpperCase(String).
* Add org.apache.commons.lang3.time.Calendars.
* Add EnumUtils getEnum() methods with default values.
* Added indexesOf methods and simplified removeAllOccurences.
* Add support of lambda value evaluation for defaulting methods.
* Add factory methods to Pair classes with Map.Entry input.
* Add StopWatch convenience APIs to format times and create a simple instance.
* Allow a StopWatch to carry an optional message.
* Add ComparableUtils.
* Add org.apache.commons.lang3.SystemUtils.getUserName().
* Add ObjectToStringComparator.
* Add org.apache.commons.lang3.arch.Processor.Arch.getLabel().
* Add IS_JAVA_14 and IS_JAVA_15 to org.apache.commons.lang3.SystemUtils.
* ObjectUtils: Get first non-null supplier value.
* Added the Streams class, and Functions.stream() as an accessor thereof.
- Fixed Bugs:
* Make test more stable by wrapping assertions in hashset.
* Generate Javadoc jar on build.
* Trivial: year of release for 3.9 says 2018, should be 2019.
* Use synchronize on a set created with Collections.synchronizedSet before iterating.
* StringUtils.unwrap incorrect throw StringIndexOutOfBoundsException.
* StringIndexOutOfBoundsException in StringUtils.replaceIgnoreCase.
* StringUtils.removeIgnoreCase("?a", "a") throws IndexOutOfBoundsException.
* Corrected usage examples in Javadocs.
* StringUtils abbreviate returns String of length greater than maxWidth.
* Test may fail due to a different order of fields returned by reflection api.
* Sort fields in ReflectionToStringBuilder for deterministic order.
* MethodUtils will throw a NPE if invokeMethod() is called for a var-args method.
* MethodUtils.getAnnotation() with searchSupers = true does not work if super is generic.
- Changes:
* Remove redundant if statements in join methods.
* commons.japicmp.version 0.13.1 -> 0.14.1.
* junit-jupiter 5.5.0 -> 5.5.1.
* junit-jupiter 5.5.1 -> 5.5.2.
* Improve Javadoc based on the discussion of the GitHub PR.
* maven-checkstyle-plugin 3.0.0 -> 3.1.0.
* Update documentation related to the issue LANG-696.
* AnnotationUtils little cleanup.
* Update test dependency: org.easymock:easymock 4.0.2 -> 4.1.
* Update test dependency: org.hamcrest:hamcrest 2.1 -> 2.2.
* Update test dependency: org.junit-pioneer:junit-pioneer 0.3.0 -> 0.4.2.
* Update build dependency: com.puppycrawl.tools:checkstyle 8.18 -> 8.27.
* Update POM parent: org.apache.commons:commons-parent 48 -> 50.
* BooleanUtils Javadoc.
* Functions Javadoc.
* org.easymock:easymock 4.1 -> 4.2.
* org.junit-pioneer:junit-pioneer 0.4.2 -> 0.5.4.
* org.junit.jupiter:junit-jupiter 5.5.2 -> 5.6.0.
* Use Javadoc {@code} instead of pre tags.
* ExceptionUtilsTest to 100%.
* Reuse own code in Functions.java.
* Avoid unnecessary allocation in StringUtils.wrapIfMissing.
* Internally use Validate.notNull(foo, ...) instead of Validate.isTrue(foo != null, ...).
* Add 1 and 0 in toBooleanObject(final String str).
* Remove an redundant argument check in NumberUtils.
* Deprecate org.apache.commons.lang3.ArrayUtils.removeAllOccurences(*) for org.apache.commons.lang3.ArrayUtils.removeAllOccurrences(*).
-------------------------------------------------------------------
Fri Apr 23 20:23:47 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>

View File

@ -1,5 +1,5 @@
#
# spec file for package apache-commons-lang3
# spec file
#
# Copyright (c) 2021 SUSE LLC
#
@ -19,13 +19,13 @@
%define base_name lang3
%define short_name commons-%{base_name}
Name: apache-%{short_name}
Version: 3.9
Version: 3.12.0
Release: 0
Summary: Apache Commons Lang Package
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://commons.apache.org/proper/commons-lang/
Source0: https://archive.apache.org/dist/commons/lang/source/%{short_name}-%{version}-src.tar.gz
Source0: https://dlcdn.apache.org/commons/lang/source/%{short_name}-%{version}-src.tar.gz
Source1: build.xml
Source2: default.properties
BuildRequires: ant

BIN
commons-lang3-3.12.0-src.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:66415e0d1c843b04c61dea6b7e7e85a8f1469eaeb1174241622650aff7728e68
size 987753