Commit Graph

6356 Commits

Author SHA1 Message Date
Gary Gregory 5aab41b365 Update for new class. 2020-12-22 15:20:10 -05:00
Gary Gregory ad69874a78 [LANG-1544] MethodUtils.invokeMethod NullPointerException in case of
null in args list #680.
2020-12-22 15:16:41 -05:00
Gary Gregory 2d97e0daf8 [LANG-1544] MethodUtils.invokeMethod NullPointerException in case of
null in args list #680.
2020-12-22 15:13:37 -05:00
Michael Buck fb6a7e7788
[LANG-1544] MethodUtils.invokeMethod NullPointerException in case of null in args list (#680)
* LANG-1544:
- Null guards in place to handle one or more nulls specified as one of the parameters of the method to invoke.
- Check for an exact match of the actual parameter types against all of the methods on the class. This prevents picking an "upcasted" method (i.e. int specified but a method with a double is chosen).
- Throw an IllegalStateException with a helpful message if multiple candidate methods were found. This happens when multiple Methods had the same "distance" from the desired parameter types. Before this change the algorithm would just chose the first one.
- Tests for the above.

Co-authored-by: mike.buck@pb.com <mike.buck@pb.com>
2020-12-22 15:12:14 -05:00
Gary Gregory f22dbf0399 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2020-12-22 15:03:29 -05:00
Gary Gregory 1b96fc1494 Correct markup in Javadoc for unbalanced braces #679. 2020-12-22 10:28:54 -05:00
Felix Schumacher 0a4505fa97
Correct markup in javadoc for unbalanced braces (#679)
Use <code>{</code> instead of {@code {}, as the latter one is
invalid. It works onn the current javadoc, as it is accompanied
with the equally invalid closing statement {@code }}, which
balances the used braces in the @code fragements and combines
the first invalid statement with the last one.
2020-12-22 10:26:31 -05:00
Gary Gregory b4456352bc Move new sort methods to a new class and add primitive versions.
This avoid growing ArrayUtils even more while keeping the new class
focused on sort APIs.
2020-12-21 16:43:30 -05:00
Gary Gregory c9e825e823 Add and use LocaleUtils.toLocale(Locale) to avoid NPEs and use the
default locale when an input locale is null.
2020-12-21 12:56:19 -05:00
Gary Gregory b5de0ef280 Sort members. 2020-12-21 12:26:32 -05:00
LeeJuHyun 1f2003041b
[LANG-1629] Delete white space (#678) 2020-12-21 12:21:40 -05:00
Gary Gregory d704c0dc70 Fix spelling in comment. 2020-12-20 13:23:54 -05:00
Bruno P. Kinoshita bed6b1128d Merge branch 'pr-674'
This closes #674
2020-12-20 08:59:21 +13:00
dependabot[bot] 2f60e45087 Bump jmh.version from 1.21 to 1.27
Bumps `jmh.version` from 1.21 to 1.27.

Updates `jmh-core` from 1.21 to 1.27

Updates `jmh-generator-annprocess` from 1.21 to 1.27

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-20 08:58:45 +13:00
Bruno P. Kinoshita 413c5f8e89 Merge branch 'pr-677'
This closes #677
2020-12-20 08:43:26 +13:00
Bruno P. Kinoshita e0de3be47c [LANG-1628] changelog 2020-12-20 08:42:48 +13:00
avijitchakraborty85@gmail.com 123606371b [LANG-1628] Javadoc correction for RandomStringUtils.random() letters, numbers parameters 2020-12-20 08:40:57 +13:00
Gary Gregory 55570e8ef7 Fix spelling. 2020-12-17 14:39:47 -05:00
Gary Gregory e9647813f7 Fix spelling. 2020-12-17 14:39:09 -05:00
Gary Gregory 615eee5d51 [LANG-1626] Correction in Javadoc of some methods. #673. 2020-12-11 00:05:27 -05:00
Kanak Sony efbfd2de97
[LANG-1626] Correction in Javadoc of some methods. (#673)
1) Found Javadoc examples in ArrayUtils.addFirst() incorrectly refer to add() at 9 places.
2) Basic code format in 3 files from time package.
2020-12-11 00:03:30 -05:00
Gary Gregory 55e0776408 Bump spotbugs from 4.1.4 to 4.2.0 #671. 2020-12-10 15:13:00 -05:00
dependabot[bot] ef6b0aa05c
Bump spotbugs from 4.1.4 to 4.2.0 (#671)
Bumps [spotbugs](https://github.com/spotbugs/spotbugs) from 4.1.4 to 4.2.0.
- [Release notes](https://github.com/spotbugs/spotbugs/releases)
- [Changelog](https://github.com/spotbugs/spotbugs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spotbugs/spotbugs/compare/4.1.4...4.2.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-10 15:11:12 -05:00
Gary Gregory 041cf552c5 [LANG-1580] Refine StringUtils.deleteWhitespace #569. 2020-12-05 12:31:42 -05:00
XenoAmess 5a17dc7ad3
refine deleteWhitespace (#569) 2020-12-05 12:30:42 -05:00
Gary Gregory eaebffb59a Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2020-12-05 12:29:04 -05:00
Gary Gregory 0532e10668 [LANG-1584] Refine StringUtils.isNumericSpace #573 2020-12-05 12:28:58 -05:00
XenoAmess ea8428ab75
[LANG-1584] Refine StringUtils.isNumericSpace (#573)
* refine isNumericSpace

* fix same issues in other two functions
2020-12-05 12:24:22 -05:00
Gary Gregory 902a0faab4 [LANG-1620] Refine StringUtils.lastIndexOfIgnoreCase #664.
[LANG-1619] Refine StringUtils.abbreviate #663.
2020-12-05 12:22:28 -05:00
Arturo Bernal dd7f02feac
LANG-1619 - refine StringUtils.abbreviate (#663) 2020-12-05 12:20:00 -05:00
Arturo Bernal 76443d7f1d
LANG-1620 - refine StringUtils.lastIndexOfIgnoreCase (#664) 2020-12-05 12:16:31 -05:00
Gary Gregory edcf9344e6 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2020-12-05 11:24:44 -05:00
Gary Gregory f9f4c09fd7 Document third party bumps.
- Bump checkstyle from 8.37 to 8.38 #665.
- Bump junit-pioneer from 1.0.0 to 1.1.0 #662.
- Bump maven-pmd-plugin from 3.13.0 to 3.14.0 #660.
2020-12-05 11:24:31 -05:00
dependabot[bot] 5569432c4e
Bump maven-pmd-plugin from 3.13.0 to 3.14.0 (#660)
Bumps [maven-pmd-plugin](https://github.com/apache/maven-pmd-plugin) from 3.13.0 to 3.14.0.
- [Release notes](https://github.com/apache/maven-pmd-plugin/releases)
- [Commits](https://github.com/apache/maven-pmd-plugin/compare/maven-pmd-plugin-3.13.0...maven-pmd-plugin-3.14.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-05 11:22:49 -05:00
dependabot[bot] d05119a9b9
Bump junit-pioneer from 1.0.0 to 1.1.0 (#662)
Bumps [junit-pioneer](https://github.com/junit-pioneer/junit-pioneer) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/junit-pioneer/junit-pioneer/releases)
- [Changelog](https://github.com/junit-pioneer/junit-pioneer/blob/master/docs/release-notes.md)
- [Commits](https://github.com/junit-pioneer/junit-pioneer/compare/v1.0.0...v1.1.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-05 11:22:15 -05:00
dependabot[bot] 434f6fc5ab
Bump checkstyle from 8.37 to 8.38 (#665)
Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 8.37 to 8.38.
- [Release notes](https://github.com/checkstyle/checkstyle/releases)
- [Commits](https://github.com/checkstyle/checkstyle/compare/checkstyle-8.37...checkstyle-8.38)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-05 11:21:07 -05:00
Gary Gregory 605f59d869 [LANG-1622] Corrected reference to right methods. #667. 2020-12-05 11:20:34 -05:00
Kanak Sony 603c55895f
[LANG-1622] Javadoc of some methods incorrectly refers to another method (#670) 2020-12-05 11:20:04 -05:00
Gary Gregory c008f4d895 [LANG-1622] Corrected reference to right methods. #667. 2020-12-05 11:18:47 -05:00
Kanak Sony 9bd9643a0b
[LANG-1622] Corrected reference to right methods. (#667) 2020-12-05 11:17:19 -05:00
Gary Gregory 66b54723f0 [LANG-1622] Javadoc of some methods incorrectly refers to another method
#668.
2020-12-03 10:36:33 -05:00
anomen-s d878091c2c
[LANG-1622] - javadoc of some methods incorrectly refers to another method (#668) 2020-12-03 10:32:59 -05:00
Gary Gregory 8c66a5fcb7 [LANG-1535] Add StringUtils.containsAnyIgnoreCase(CharSequence,
CharSequence...).
2020-11-29 13:11:46 -05:00
Gary Gregory 1bf275cb60 [LANG-1535] Add StringUtils.containsAnyIgnoreCase(CharSequence,
CharSequence...).
2020-11-29 13:11:13 -05:00
Gary Gregory c2da7e3c51 Don't need local var. 2020-11-26 10:00:32 -05:00
Gary Gregory ebed08cb25 [LANG-1618] ypeUtils. containsTypeVariables does not support
GenericArrayType #661.
2020-11-26 09:58:28 -05:00
Arturo Bernal b74c697bba
LANG-1618 - Add GenericArrayType (#661) 2020-11-26 09:55:48 -05:00
Gary Gregory 5b025fe4b6 Use a String instead of building one. 2020-11-21 14:10:54 -05:00
Gary Gregory 90e357d461 Redundant return. 2020-11-21 13:51:16 -05:00
Gary Gregory 764b9bba52 Use final. 2020-11-20 22:12:25 -05:00