Commit Graph

5906 Commits

Author SHA1 Message Date
XenoAmess 011c8bdc92
[LANG-1563] use StandardCharsets.UTF_8 (#548)
* use_StandardCharsets_UTF_8

* Update StringEscapeUtilsTest.java
2020-06-13 10:46:16 -04:00
Gary Gregory 1c00d14d37 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2020-06-13 10:45:19 -04:00
Gary Gregory 773f276c23 [LANG-1561] Use List.sort instead of Collection.sort #546. 2020-06-13 10:45:08 -04:00
XenoAmess 7651124bec
[LANG-1561] use List.sort instead of Collection.sort (#546)
* use_List_sort

* Update MethodUtils.java

* Update ObjectToStringComparatorTest.java
2020-06-13 10:44:05 -04:00
Gary Gregory 2d21e19f06 [LANG-1550] Optimize ArrayUtils::isArrayIndexValid method. #551. 2020-06-13 10:41:31 -04:00
Edgar Asatryan 874cc14328
[LANG-1550] Optimize ArrayUtils::isArrayIndexValid method. (#551)
* [LANG-1550] Optimize ArrayUtils::isArrayIndexValid method.
2020-06-13 10:39:41 -04:00
Gary Gregory 96a8969c13 Remove trailing white space. 2020-06-12 17:36:10 -04:00
Gary Gregory b2412284a3 [LANG-1569] Add ArrayUtils.get(T[], index, T) to provide an
out-of-bounds default value
2020-06-12 16:41:10 -04:00
Gary Gregory 5b699d0765 [LANG-1569] Add ArrayUtils.get(T[], index, T) to provide an
out-of-bounds default value
2020-06-12 16:40:49 -04:00
Gary Gregory 495167a392 Sort members. 2020-06-12 16:25:35 -04:00
Gary Gregory 40cb020e8d Sort members. 2020-06-12 16:20:28 -04:00
Gary Gregory 6094cf2237 Remove trailing white space. 2020-06-12 16:15:01 -04:00
Gary Gregory 67929942a5 - Update com.github.spotbugs:spotbugs 4.0.3 -> 4.0.4.
- Update com.puppycrawl.tools:checkstyle  8.32 -> 8.33.
2020-06-12 15:35:28 -04:00
Gary Gregory f5e9f55283 [LANG-1568] Add more failable Consumers to match JRE stock Consumers. 2020-06-12 15:25:14 -04:00
Gary Gregory 62393bd601 commons.bc.version 3.9 -> 3.10 2020-06-12 11:37:06 -04:00
Gary Gregory 540ec09e25 Sort members. 2020-06-12 11:36:13 -04:00
Gary Gregory d88f70e8ff [LANG-1568] FailableBooleanSupplier, FailableIntSupplier,
FailableLongSupplier, FailableDoubleSupplier.
2020-06-12 11:35:37 -04:00
Gary Gregory 53aa7a2e9a Fix build on Java 15-ea. 2020-06-12 09:48:06 -04:00
Gary Gregory 42a73e1499 Add missing Javadoc. 2020-06-12 09:01:16 -04:00
Gary Gregory 8f7eb6ce20 Simplify lambads.
Fix Javadoc.
2020-06-11 09:55:02 -04:00
Gary Gregory e968ad5a3f Add missing @since 3.9 and 3.10 Javadoc tags.
Clean up formatting.
Clean up Javadocs.
Sort methods in AB order.
2020-06-11 09:43:11 -04:00
Gary Gregory 598e8bd51e Javadoc. 2020-06-10 09:07:59 -04:00
John Patrick 115a6c64bc StreamsTest junit-jupiter 2020-06-01 23:43:02 +12:00
Jochen Wiedmann 3d4ed4a8ac Fixing Checkstyle warnings.
Closes #532.
2020-05-31 22:18:02 +02:00
Gary Gregory f544897e49 Test major Java versions with GitHub actions as documented on
https://github.com/actions/setup-java
# WARNING: head commit changed in the meantime

@Deprecated
2020-05-30 11:00:18 -04:00
Jochen Wiedmann c141bc961c Adding the Locks class. 2020-05-28 22:52:46 +02:00
Gary Gregory 71ee021ca5 [LANG-1545] CharSequenceUtils.regionMatches is wrong dealing with
Georgian.
2020-05-25 09:48:20 -04:00
XenoAmess 2c7e5e4b29
[LANG-1545] CharSequenceUtils.regionMatches is wrong dealing with Georgian. (#529)
* CharSequenceUtils.regionMatches is wrong dealing with Georgian.
see details in tests.
* refine tests
2020-05-25 09:41:18 -04:00
Gary Gregory c0d0d4f3ea Update com.github.spotbugs:spotbugs from 4.0.2 to 4.0.3.
Update com.puppycrawl.tools:checkstyle from 8.31 to 8.32.
2020-05-24 11:19:42 -04:00
Gary Gregory 84a80552b8 Update org.junit-pioneer:junit-pioneer from 0.5.6 to 0.6.0. 2020-05-24 11:13:00 -04:00
Gary Gregory 4db2896750 The next release will be 3.11. 2020-05-24 11:07:18 -04:00
Gary Gregory daa4193fb2 Add ArrayUtils.isSameLength() to compare more array types #430. 2020-05-24 11:05:21 -04:00
Gary Gregory f692351035 - com.github.spotbugs:spotbugs 4.0.0 -> 4.0.2.
- com.puppycrawl.tools:checkstyle 8.29 -> 8.31.
2020-04-20 17:23:31 -04:00
Gary Gregory 299736554a spotbugs.plugin.version 4.0.0 -> 4.0.2. 2020-04-20 17:13:50 -04:00
Gary Gregory 7c754d9c1e (Javadoc) Fix return tag for throwableOf*() methods #518. 2020-04-20 17:10:42 -04:00
Arend v. Reinersdorff 22500d11ae
(doc) Fix throwable is returned, not index (#518) 2020-04-20 17:08:55 -04:00
Gary Gregory d8ebaf932d Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2020-04-20 16:58:26 -04:00
Gary Gregory 9388c5747f [LANG-1534] Replace some usages of the ternary operator with calls to
Math.max() and Math.min() #512.
2020-04-20 16:58:20 -04:00
Isira Seneviratne 44d4acc621
Simplify some usages of the ternary operator with calls to Math.max() and Math.min(). (#512) 2020-04-20 16:57:41 -04:00
Gary Gregory 271cf4c9e9 [LANG-1537] Simplify a null check in the private replaceEach() method of
StringUtils. #514.
2020-04-20 16:56:02 -04:00
Isira Seneviratne 0b899ee40b
Simplify a null check in the private replaceEach() method. (#514) 2020-04-20 16:54:33 -04:00
Gary Gregory 96caf42b31 Simplify some if statements in StringUtils. #521. 2020-04-20 16:53:29 -04:00
Isira Seneviratne 675d30d882
Simplify some if statements in StringUtils. (#521)
* Simplify if-else statements at the start of abbreviate().

* Combine if statements in abbreviateMiddle().

* Simplify the first if condition of substringBetween().

* Simplify the first if condition of stripAll().
2020-04-20 16:52:56 -04:00
Gary Gregory f13f787a66 Simplify null checks in Triple.hashCode() using Objects.hashCode().
#516.
2020-04-20 16:44:29 -04:00
Gary Gregory c25de73d21 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2020-04-20 16:43:58 -04:00
Isira Seneviratne c7ab53f9e3
Simplify null checks in Triple.hashCode() using Objects.hashCode(). (#516) 2020-04-20 16:43:46 -04:00
Gary Gregory a1531bcd1e Simplify null checks in Pair.hashCode() using Objects.hashCode(). #517. 2020-04-20 10:12:21 -04:00
Isira Seneviratne d7f8dcedfa
Simplify null checks in Pair.hashCode() using Objects.hashCode(). (#517) 2020-04-20 10:10:39 -04:00
Bruno P. Kinoshita 7f45b8898b
Merge pull request #519 from Isira-Seneviratne/Correct_assertions_in_CharUtilsTest
Alter assertions in CharUtilsTest to get the class of CharUtils instead of BooleanUtils.
2020-04-20 09:40:21 +12:00
Isira Seneviratne d94d76bbec Alter assertions to get the class of CharUtils instead of BooleanUtils. 2020-04-19 21:12:57 +05:30