Commit Graph

5516 Commits

Author SHA1 Message Date
Arturo Bernal 02ff51e504
Minor Improvements (#701)
* Minor Improvement:

* Add final variable.try to make the code read-only
* inline Variable. Simplify code

* Update UnicodeUnpairedSurrogateRemover.java

Better comment.

Co-authored-by: Gary Gregory <garydgregory@users.noreply.github.com>
2021-02-10 17:16:02 -05:00
Gary Gregory 556b744c27 Bump spotbugs from 4.2.0 to 4.2.1 #708. 2021-02-10 17:13:56 -05:00
Gary Gregory 78e3e0390e Bump checkstyle from 8.39 to 8.40 #706. 2021-02-10 17:13:10 -05:00
Gary Gregory d03e715824 Bump junit-bom from 5.7.0 to 5.7.1 #707. 2021-02-10 17:11:23 -05:00
Gary Gregory ba1df937ff Bump actions/cache from v2 to v2.1.4 #710. 2021-02-10 17:10:07 -05:00
Gary Gregory 4f85c164a1 Add StringUtils.substringBefore(String, int). 2021-02-10 17:04:11 -05:00
Gary Gregory 92529ed903 Remove trailing whitespace. 2021-02-07 10:58:58 -05:00
Gary Gregory 63d7c27bef Better local variable name. 2021-02-07 10:33:24 -05:00
Gary Gregory 1131a0c933 Eat own dog food. 2021-02-07 10:32:58 -05:00
Gary Gregory 56dd87e8b8 Fix Javadoc link. 2021-02-07 10:26:27 -05:00
Gary Gregory 38611d05e9 Add missing Javadoc since tag. 2021-02-07 10:25:33 -05:00
Gary Gregory 8dfc79886a Be consistent declaring throws NullPointerException. 2021-02-07 10:25:01 -05:00
Gary Gregory 96d7d49f33 No need to abbreviate local var name. 2021-02-07 10:21:15 -05:00
Gary Gregory d526317006 Use the standard "T" generic type. 2021-02-07 10:20:20 -05:00
Gary Gregory ac6ebf4e1c No need to nest. 2021-02-07 10:15:29 -05:00
Jochen Wiedmann 45e8395ec7 Introducing @Nonnull, @Nullable, and the Objects class as a helper tool. 2021-02-06 22:51:47 +01:00
Gary Gregory a1495290b9 Consolidate entries. 2021-02-03 22:42:28 -05:00
Gary Gregory 29c7b18be8 Bump maven-checkstyle-plugin from 3.1.1 to 3.1.2 #705 2021-02-03 22:41:04 -05:00
Gary Gregory 5755cced01 Use the scale in names. 2021-02-02 18:02:26 -05:00
Gary Gregory de3614e3dc Use the scale in the var name. 2021-02-02 17:40:29 -05:00
Gary Gregory 3e27e51770 Bump junit-pioneer from 1.1.0 to 1.3.0 #702 2021-01-27 11:45:27 -05:00
Gary Gregory 6b03fe54b8 Javadoc: Sentences end in a period. 2021-01-22 13:41:06 -05:00
Gary Gregory 0b135af5a0 Make private elements final where possible. 2021-01-17 16:48:52 -05:00
Gary Gregory dddd8c4e26 Use isEmpty(). 2021-01-16 22:30:34 -05:00
Gary Gregory c7c74e936d Fix Checkstyle suppressions DTD link. 2021-01-11 12:18:00 -05:00
Gary Gregory ad84785d9d Fix Checkstyle configuration DTD link. 2021-01-11 12:09:50 -05:00
Gary Gregory ddae550848 Update com.github.siom79.japicmp:japicmp-maven-plugin 0.15.1 -> 0.15.2. 2021-01-08 11:30:40 -05:00
Gary Gregory f5ce8c408a Reuse JRE Arrays.fill(). 2021-01-06 21:01:32 -05:00
Gary Gregory e739844b11 Remove unused import. 2021-01-06 15:59:14 -05:00
Gary Gregory 41564884df [LANG-1637] Fix 2 digit week year formatting #688 2021-01-06 15:53:10 -05:00
Uri Gonen 63f644daa8
[LANG-1637] Fix 2 digit week year formatting (#688)
* LANG-1637: fix 2 digit week year formatting

* LANG-1637: added test cases for Y & YYY patterns

* LANG-1637: added test cases for Y & YYY patterns

* LANG-1637: added test cases for Y & YYY patterns
2021-01-06 15:51:14 -05:00
Gary Gregory 2a8356cd43 Replace StringBuilder with StringJoiner in join() APIs. 2021-01-06 14:40:29 -05:00
Gary Gregory 8f92211d35 [LANG-1636] Add missing boolean[] join method #686 2021-01-06 11:09:22 -05:00
Arturo Bernal 8dc37dc4a7
LANG-1636 - Boolean Join Function (#686) 2021-01-06 11:01:13 -05:00
Gary Gregory 1d0422c909 Bump spotbugs-maven-plugin from 4.1.4 to 4.2.0 #692 2021-01-06 10:24:39 -05:00
Gary Gregory 3ba01073f6 Rename private class nad make it final; pre-compute hashcode, fix NPE
compiler warning.

Javadoc: No need for paragraph tags for the 1st and only sentence.
Format code to line length 120.
2021-01-03 11:51:25 -05:00
Gary Gregory 7f8897faba Processor.java: check enum euqality with == instead of .equals() method
#690.
2021-01-03 11:14:28 -05:00
Ali K. Nouri 43b926eef8
Processor.java: check enum euqality with == instead of .equals() method (#690) 2021-01-03 11:12:45 -05:00
Gary Gregory e6e1682089 Replace cascading if-else's with a case statement. 2021-01-03 11:08:27 -05:00
Gary Gregory 1948d987db Remove dead comments. 2021-01-01 13:44:31 -05:00
Gary Gregory 876543f6cc Add JavaVersion.JAVA_17 now that Java 17-ea is out. 2021-01-01 13:44:01 -05:00
Gary Gregory a36b59c6f8 CLean up odds and ends.
- Use EMPTY constant.
- Move a guard clause down to the implementating method from wrapper
method.
- Remove dead comments.
- Remove duplicate null check.
- Remove duplicate empty-string check.
- Use Charsets.toCharset).
2021-01-01 13:34:56 -05:00
Gary Gregory 733768a6d9 Add recent macOS versions.
macOS 10.12 Sierra
macOS 10.13 High Sierra
macOS 10.14 Mojave
macOS 10.15 Catalina
macOS 10.16 Big Sur (a.k.a. 11.0, 11.1)
2021-01-01 11:12:07 -05:00
Gary Gregory f5c86f6d4e Update commons.japicmp.version 0.14.4 -> 0.15.1. 2020-12-31 02:27:57 -05:00
Gary Gregory 9801f93d47 Update commons.japicmp.version 0.14.3 -> 0.14.4. 2020-12-29 18:54:45 -05:00
Gary Gregory cd013c9239 Use less mysterious names. 2020-12-29 13:23:19 -05:00
Gary Gregory 8aff0a08f2 Show Java version in assertion failure message. 2020-12-29 11:45:04 -05:00
Gary Gregory 5157875ce5 Javadoc to make is easier to use your IDE to jump to the method. 2020-12-29 11:41:49 -05:00
Arturo Bernal 9fa1d734f6
LANG-1631 - Check if the char to be searched is defined (#682) 2020-12-27 12:05:33 -05:00
Gary Gregory 45bec219d2 Add FailableShortSupplier, handy for JDBC APIs. 2020-12-24 10:02:37 -05:00
Gary Gregory b5bb3e6d3a Fix test method names. 2020-12-23 20:05:48 -05:00
Gary Gregory 157ba27be7 Minor internal clean ups. Add and use constants. 2020-12-23 10:24:13 -05:00
Gary Gregory b1da31ef40 Simplify Javadocs. 2020-12-23 10:03:31 -05:00
Gary Gregory 31ede5565b Use final. 2020-12-22 16:07:02 -05:00
Gary Gregory 44b0bb5273 Use ArraySorter. 2020-12-22 16:06:55 -05:00
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
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 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
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 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
Gary Gregory 605f59d869 [LANG-1622] Corrected reference to right methods. #667. 2020-12-05 11:20:34 -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
Gary Gregory d5196e7fe4 No need to initialize to default value. 2020-11-20 21:45:32 -05:00
Gary Gregory f3346dd067 Fix ctor call. 2020-11-20 21:45:19 -05:00
Gary Gregory 53e4f62b51 Remove redundant calls to super(). 2020-11-20 18:00:10 -05:00
Gary Gregory d8f8d9a3a8 Initialize a collection when you create it. 2020-11-20 16:09:58 -05:00
Gary Gregory f2480a984f Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2020-11-17 15:19:06 -05:00
Gary Gregory 12e4ad1cfa Fix formatting of isAn.
yBlank() and isAnyEmpty(). #513
2020-11-17 15:18:58 -05:00
Isira Seneviratne 5f3a9a6eae
Fix formatting of isAnyBlank() and isAnyEmpty(). (#513) 2020-11-17 15:17:57 -05:00
Gary Gregory 412f1e13c9 [LANG-1610] Fix StringUtils.unwrap throws
StringIndexOutOfBoundsException #636
2020-11-17 15:14:28 -05:00
Tony Liang c6f577555b
LANG-1610: Fix StringUtils.unwrap throws StringIndexOutOfBoundsException (#636)
Co-authored-by: Tony Liang <shuchel@zillowgroup.com>
2020-11-17 15:11:19 -05:00
Gary Gregory bd8dbbe0be Fix Javadoc for SystemUtils.isJavaVersionAtMost() #638. 2020-11-17 15:08:19 -05:00
John R. D'Orazio 2adf71bf23
fix javadoc for isJavaVersionAtMost (#638)
the javadoc for isJavaVersionAtMost was the same as for isJavaVersionAtLeast! They sure don't do the same thing :)
2020-11-17 15:06:27 -05:00
Gary Gregory 61e82e832e [LANG-1615] ArrayUtils contains() and indexOf() fails to handle
Float.NaN.
2020-11-15 17:42:04 -05:00
Arturo Bernal 2ccc58e344
[LANG-1615] - ArrayUtils contains && indexOf fails to handle Float.NaN (#651)
* LANG-1615 - ArrayUtils contains && indexOf fails to handle Float.NaN

* Change var name

* Fix checkstyle spaces black

* Fix checkstyle spaces black
2020-11-15 17:37:54 -05:00
Gary Gregory 08d1f66236 [LANG-1612] Fix flaky tests in FieldUtilsTest. 2020-11-15 12:24:13 -05:00
Gary Gregory 3bda8be036 Add fluent-style ArrayUtils.sort(Object[], Comparable). 2020-11-15 12:08:32 -05:00
Gary Gregory 35799d0958 [LANG-1420] TypeUtils.isAssignable returns wrong result for
GenericArrayType and ParameterizedType.
2020-11-15 11:49:11 -05:00
Gary Gregory e123bab198 Fix potential NPE in TypeUtils.isAssignable(Type, ParameterizedType,
Map, Type>).
2020-11-15 10:55:53 -05:00
Gary Gregory 43b2326713 Consistently use just the parameter name for the message of
NullPointerExceptions.
2020-11-15 10:40:31 -05:00
Gary Gregory fe1c7903a8 Sort members. 2020-11-15 09:37:29 -05:00
Gary Gregory 46cdc660f2 Javadoc. 2020-11-15 09:37:10 -05:00
Gary Gregory 0e2ebd347c [LANG-1541] ArrayUtils.contains() and indexOf() fails to handle
Double.NaN #647.

Also remove trailing whitespaces.
2020-11-14 16:33:35 -05:00
Gary Gregory 4cf3dc8c8f [LANG-1613] - BigDecimal is created when you pass it the minimum values…
#642.
2020-11-14 12:23:33 -05:00
Gary Gregory 09c662429b Add fluent-style ArrayUtils.sort(Object[]). 2020-11-14 11:41:46 -05:00
Gary Gregory 14b60bbb9f Update maven-surefire-plugin 2.22.2 -> 3.0.0-M5.
Organize changes.xml for 3.12 entries.
2020-11-14 10:00:46 -05:00
Gary Gregory 6aab14bf1c [LANG-1359] Add StopWatch.getStopTime().
Simplify test.
2020-11-14 09:41:51 -05:00
Gary Gregory e832b70e40 [LANG-1359] Add StopWatch.getStopTime(). 2020-11-14 09:31:59 -05:00
Gary Gregory c9722131d5 Add StopWatch.getStopTime().
Also:
- Rename private instance variable to reflect scale.
- More precise Javadocs.
- Throw IllegalStateException instead of RuntimeException.
- Refactor common code in test for sleeping the current thread.
2020-11-14 09:27:04 -05:00
Gary Gregory 93d520a3e1 Add StringUtils.containsAnyIgnoreCase(CharSequence, CharSequence...). 2020-11-13 10:30:08 -05:00
Gary Gregory 6a991d8413 Close HTML tag. 2020-11-13 10:10:27 -05:00
Gary Gregory 6f51b9b7cb Sort members. 2020-11-13 10:01:10 -05:00
Gary Gregory 6b3f258ed7 Bump checkstyle from 8.36.2 to 8.37 #637. 2020-11-06 09:46:31 -05:00
Gary Gregory 146ddf2363 Bump actions/checkout from v2.3.3 to v2.3.4 #639. 2020-11-06 09:44:21 -05:00
Gary Gregory 20ae8f6888 More test coverage for CharSequenceUtils. #631. 2020-10-25 10:53:14 -04:00
Edgar Asatryan 34a3096eb4
More coverage for CharSequenceUtils. (#631) 2020-10-25 10:52:16 -04:00
Gary Gregory 05cb6139b9 Bump spotbugs-maven-plugin from 4.1.3 to 4.1.4 #632. 2020-10-25 10:47:11 -04:00
Gary Gregory 13eab3b25e Use own API for ser/deser roundtrip since the point of the test is not
proper usage of JRE API but whether our classes are properly
implemented.
2020-10-25 10:43:33 -04:00
Gary Gregory 54afd64c79 Fix param name. 2020-10-25 10:36:34 -04:00
Gary Gregory 4d066361c0 Suppress warning and add comment; use a simpler error messgae. 2020-10-25 10:34:59 -04:00
Gary Gregory 8fbf27a830 Sort methods. 2020-10-25 10:29:58 -04:00
Gary Gregory faa48f6b6a Fix generics warning. 2020-10-25 10:21:12 -04:00
Gary Gregory 75b4058ac4 NumberUtilsTest - incorrect types in min/max tests #634.
- Document change.
- Sort methods.
- Format to max line length 120.
2020-10-25 10:18:00 -04:00
Hubert 6d7a3e6eeb
NumberUtilsTest - incorrect types in min/max tests (#634)
* Fix: correctly declared types and added castings

* Fix: code format

* Redo - optimize imports
2020-10-25 10:12:45 -04:00
Gary Gregory 110b4c021e Checkstyle. 2020-10-22 14:53:59 -04:00
Gary Gregory 7995aad79f Split out tests for a Java 15 bug.
These tests fail on Java 15 due to a bug which was only fixed for Java
16.
See https://bugs.openjdk.java.net/browse/JDK-8248434
See https://bugs.openjdk.java.net/browse/JDK-8248655
2020-10-22 14:47:45 -04:00
Gary Gregory bcdff98f02 Sort methods. 2020-10-20 11:45:46 -04:00
Gary Gregory b8204aa29b Checkstyle: Whitepace. 2020-10-20 11:05:14 -04:00
Gary Gregory d05ad7abd6 Add missing Javadoc. 2020-10-20 10:47:07 -04:00
Gary Gregory e14a2d9226 Update dependencies.
- Bump biz.aQute.bndlib from 5.1.2 to 5.2.0 #628.
- Bump spotbugs from 4.1.3 to 4.1.4 #627.
- Bump junit-pioneer from 0.9.2 to 1.0.0 #625.
2020-10-20 10:21:56 -04:00
Alex Herbert 43c80576cf LANG-1608: Track changes 2020-10-17 14:00:54 +01:00
Gary Gregory 8ff63a0da3 Bump spotbugs-maven-plugin from 4.0.4 to 4.1.3 #623. 2020-10-03 10:28:45 -04:00
Gary Gregory a6f97f358f Bump junit-pioneer from 0.9.0 to 0.9.2 #624. 2020-10-02 11:15:43 -04:00
Rob Tompkins c1c4a7535b (changes) Bump junit-jupiter from 5.6.2 to 5.7.0 2020-10-01 10:16:03 -04:00
Rob Tompkins dd1c0d9292 (changes) Bump spotbugs from 4.1.2 to 4.1.3 2020-10-01 10:10:16 -04:00
Rob Tompkins 66681a7643 (changes) Bump checkstyle from 8.36 to 8.36.2 2020-10-01 10:07:30 -04:00
Gary Gregory b2e7374bfb Add BooleanUtils.booleanValues().
Add BooleanUtils.primitiveValues().

Handy for tools and tests.
Make next release version 3.12.0.
2020-09-28 15:31:56 -04:00
Gary Gregory a3e5a0134e Sort members. 2020-09-28 15:19:12 -04:00
Gary Gregory 218eae4c3a Sort members. 2020-09-28 15:13:28 -04:00
Gary Gregory bae0e42fac Update commons.jacoco.version 0.8.5 to 0.8.6 (Fixes Java 15 builds). 2020-09-19 16:05:16 -04:00
Sebb 4b5f1cf57d One per line 2020-09-12 23:38:51 +01:00
Sebb 433700ea80 One per line 2020-09-12 23:37:12 +01:00
Sebb 693e5129e8 Useless assignment 2020-09-12 23:34:29 +01:00
Sebb 875d1054c0 Useless parentheses 2020-09-12 23:32:56 +01:00
Sebb 7ab21126a0 Docs 2020-09-12 23:31:44 +01:00
Sebb 38a9209456 LANG-1606 StringUtils.countMatches - fix Javadoc 2020-09-12 23:23:18 +01:00
Gary Gregory 0054e51500 checkstyle from 8.35 to 8.36 #614. 2020-09-08 11:47:02 -04:00
Gary Gregory 3621a65051 ContextedException Javadoc add missing semicolon #581. 2020-08-30 18:33:34 -04:00
iamchao1129 ddac01fc9a
Add semicolon (#581)
Co-authored-by: zhangchao36 <zhangchao36@jd.com>
2020-08-30 18:31:34 -04:00
Gary Gregory 81efeaacad [LANG-1600] Restore handling of collections for non-JSON ToStringStyle
#610.
2020-08-30 18:29:54 -04:00
Michael F 772f97c437
[LANG-1600] Restore handling of collections for non-JSON ToStringStyle (#610)
* [LANG-1600] add test cases for non-empty collections, maps, and arrays

* break out those test cases into separate methods for legibility
* addresses issue introduced in LANG-1542 with commit 1dddec8

* [LANG-1600] restore non-json-style handling of appendDetail() for Collection

* addresses issue introduced in LANG-1542 with commit 1dddec8
2020-08-30 18:27:17 -04:00
Gary Gregory 47f96a3c95 End sentence with a period. 2020-08-30 18:13:45 -04:00
Gary Gregory 0683ab262d Revert "Better link."
This reverts commit b1a66d2da9.
2020-08-30 18:13:18 -04:00
Gary Gregory b1a66d2da9 Better link. 2020-08-30 18:12:26 -04:00
Gary Gregory 5512896585 spotbugs from 4.1.1 to 4.1.2 #609. 2020-08-30 11:37:31 -04:00
Gary Gregory fb34130520 actions/setup-java from v1.4.0 to v1.4.2 #612. 2020-08-30 11:34:48 -04:00
Gary Gregory 21fe158cb2 Merge branch 'release' and resolve conficts. 2020-08-30 11:33:31 -04:00
Gary Gregory 2f19010c7a Fix a Javadoc link to always point to the current release and not
mention a specific version label.
2020-08-30 11:27:37 -04:00
Gary Gregory 31dc5c700e Remove old comments. 2020-08-20 13:50:23 -04:00
Gary Gregory 5d05df0f9e Simplify lambdas. 2020-08-14 23:35:42 -04:00
Gary Gregory 348cf47741 [LANG-1596] ArrayUtils.toPrimitive(Object) does not support boolean and
other types #607.
2020-08-14 23:27:31 -04:00
Richard Eckart de Castilho 6996806101
[LANG-1596] ArrayUtils.toPrimitive(Object) does not support boolean and other types (#607)
- Add support for the missing types to toPrimitive(Object)
- Added tests for toPrimitive methods which did not have test coverage yet
- Added explicit test for the toPrimitive(Object) method for all primitive types
2020-08-14 23:25:54 -04:00
Gary Gregory 9f52471fab junit-pioneer from 0.8.0 to 0.9.0 #600. 2020-08-10 12:03:02 -04:00
Gary Gregory 17e1f408f7 actions/checkout from v2.3.1 to v2.3.2 #601. 2020-08-10 12:02:06 -04:00
Gary Gregory 8a877ec12e Describe recent change. 2020-08-03 09:29:10 -04:00
Gary Gregory 528e4c7655 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2020-08-03 09:20:46 -04:00
Gilles Sadowski 4897c8869b LANG-1593: Add unit test with OP's use-case that shows unexpected difference in behaviour.
Unit test is set to "@Disabled" to not fail the build.
2020-08-03 12:24:13 +02:00
Gary Gregory 03ae165039 Document recent changes. 2020-07-31 09:13:40 -04:00
aherbert c3b4e22562 Fix changes description to include class name 2020-07-29 11:50:55 +01:00
aherbert dbe022e646 LANG-1579: Improve stripAccents conversion of remaining accents
Single characters can be changed in place to avoid delete then insert.

Closes #568
2020-07-29 11:47:46 +01:00
Gary Gregory f22f659321 Document recent change. 2020-07-23 11:14:40 -04:00
Gary Gregory fed91a0559 Format JUnit failure message. Tweaks. 2020-07-23 11:11:51 -04:00
Gary Gregory 8333f7e7ba Update biz.aQute.bndlib from 5.1.1 to 5.1.2 #592. 2020-07-23 10:08:44 -04:00
Gary Gregory ff3d7c2325 Reduce wait time in test. 2020-07-23 10:05:52 -04:00
Gary Gregory cb9a59cabb Update spotbugs-maven-plugin from 4.0.0 to 4.0.4. 2020-07-23 09:27:47 -04:00
Gary Gregory 37de491eb3 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2020-07-23 09:25:02 -04:00
Gary Gregory 3276da82f0 Better names in test. Use final. Sort members. 2020-07-23 09:24:53 -04:00
Alex Herbert ba7505d9a9 LANG-1592: Correct implementation of RandomUtils.nextLong(long, long)
The method has been changed to use exclusively the long datatype to
generate the value.

The implementation is taken from the Commons RNG project.
2020-07-22 22:02:07 +01:00
Gary Gregory b99969ca8a Enable Dependabot #587. 2020-07-22 10:10:07 -04:00
Alex Herbert 2957f33b6f Javadoc fix 2020-07-21 08:21:55 +01:00
Alex Herbert 2242b6f2ca Remove javadoc reference to private constructor 2020-07-21 08:20:23 +01:00
Gary Gregory deaed63d51 Update versions for 3.12. 2020-07-20 11:37:23 -04:00
Gary Gregory dfec50030f Use Maven generated changes-report for the release history. 2020-07-20 11:34:45 -04:00
Gary Gregory 1bf70c5c96 Use Maven generated changes-report for the release history. 2020-07-20 11:15:44 -04:00
Bruno P. Kinoshita 53529d8f49 [LANG-1591]: add changes.xml entry 2020-07-20 21:19:44 +12:00
Bruno P. Kinoshita 984bb2b585 Merge branch 'pr-585'
This closes #585
2020-07-20 21:11:34 +12:00
B Sharma 61c575afac Remove redudant argument from substring call 2020-07-20 10:41:09 +05:30
Gary Gregory e803396263 Add slot for next release. 2020-07-18 17:31:56 -04:00
Gary Gregory 031c1d0b8c Fix download link. 2020-07-18 08:37:57 -04:00
Gary Gregory 6d9102ab92 Revert "Format tweak."
This reverts commit c56be9c3dd.
2020-07-17 08:51:55 -04:00
Gary Gregory c56be9c3dd Format tweak. 2020-07-16 19:23:10 -04:00
Gary Gregory bc4b945bde Prepare for 3.11 site. 2020-07-16 09:07:00 -04:00
Gary Gregory fe95edd45f Prepare for 3.11-RC2. 2020-07-12 08:59:56 -04:00
Rob Tompkins 3d8408776e (docs) minor nits and whitespace addions for readability 2020-07-12 08:43:32 -04:00
Rob Tompkins 19f5632919 (docs) Add citations to LockingVisitors javadoc 2020-07-12 08:14:24 -04:00
Rob Tompkins 669f6833e3
(docs) formatting nit 2020-07-11 17:24:29 -04:00
Gary Gregory 92d6be66ff Whitespace and lambda clean ups. 2020-07-11 17:21:25 -04:00
Gary Gregory 5283344927 Added missing Javadoc and tweaked another Javadoc. 2020-07-11 17:16:31 -04:00
Gary Gregory 3e86896c13 Format. 2020-07-11 16:54:07 -04:00
Gary Gregory ff4ef533a5 Redo this class after Rob Tompkins found a bug.
Much simpler now as well.
2020-07-11 16:39:14 -04:00
Gary Gregory ab627f97bc Prepare for 3.11-RC1. 2020-07-10 19:29:13 -04:00
Gary Gregory 2296d0bb14 Fix Javadoc. 2020-07-10 12:11:01 -04:00
Gary Gregory d5c29230d8 [LANG-1539] Add allNull() and anyNull() methods to ObjectUtils. #522. 2020-07-10 11:57:58 -04:00
Gary Gregory 1a77a547dd
Add allNull() and anyNull() methods to ObjectUtils, as well as their associated tests. (#522) 2020-07-10 11:56:01 -04:00
Gary Gregory 4f9be0faab Checkstyle. 2020-07-10 11:49:00 -04:00
Gary Gregory 265b74aac7 Format new class. 2020-07-10 11:47:45 -04:00
Isira Seneviratne ee6c682ed5 Add allNull() and anyNull() methods to ObjectUtils, as well as their associated tests. 2020-07-10 09:53:26 +05:30
Gary Gregory 1fc15b43d4 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2020-07-09 21:27:56 -04:00
Gary Gregory 9dbabe2494 Correct Javadocs of methods that use Validate.notNull() and replace some
uses of Validate.isTrue() with Validate.notNull(). #525.
2020-07-09 21:27:42 -04:00
Isira Seneviratne 3700641b4e
Correct Javadocs of methods that use Validate.notNull() and replace some uses of Validate.isTrue() with Validate.notNull(). (#525)
* Update Javadocs of methods that call Validate.notNull() to refer to NullPointerException instead of IllegalArgumentException for null values.

* Use Validate.notNull() instead of Validate.isTrue() to check for null values, and update the associated tests to check for NullPointerException instead of IllegalArgumentException.
2020-07-09 21:26:19 -04:00
Gary Gregory 039c5293a1 Clean up after merge. Class rename and package rename did not come
through.
2020-07-09 08:38:19 -04:00
Gary Gregory 3243638167
Stamped lock visitor (#559)
Co-authored-by: Gary Gregory <gardgregory@gmail.com>
2020-07-09 08:28:25 -04:00
Gary Gregory 32a9a350c6 org.junit.jupiter:junit-jupiter 5.6.1 -> 5.6.2. 2020-07-04 09:45:02 -04:00
Gary Gregory 065662fcf3 com.puppycrawl.tools:checkstyle 8.33 -> 8.34. 2020-07-04 09:42:32 -04:00
Gary Gregory ad433ecc16 Make internal API null-safe and Javadoc. 2020-07-01 17:21:55 -04:00
Gary Gregory 954338a152 Sort 2 methods. 2020-07-01 17:07:09 -04:00
Gary Gregory f89a85b051 [LANG-1543] [JSON string for maps] ToStringBuilder.reflectionToString
doesnt render nested maps correctly.
2020-06-28 09:49:12 -04:00
Gary Gregory 5e71a4add5 [LANG-1543] [JSON string for maps] ToStringBuilder.reflectionToString
doesnt render nested maps correctly.

Apply a different version of the PR
https://github.com/apache/commons-lang/pull/561

Closes #561.
2020-06-28 09:40:45 -04:00
Gary Gregory 4063df71c3 [LANG-1543] [JSON string for maps] ToStringBuilder.reflectionToString
doesnt render nested maps correctly.

Apply a different version of the PR
https://github.com/apache/commons-lang/pull/561

Closes #561.
2020-06-28 09:38:52 -04:00
Gary Gregory 062bc6fe7d Add Add org.apache.commons.lang3.StringUtils.substringAfterLast(String,
int).
2020-06-27 09:32:30 -04:00
Gary Gregory 75fa90e96c Use final. 2020-06-27 09:24:58 -04:00
Gary Gregory d68a7a4189 Add org.apache.commons.lang3.StringUtils.substringAfter(String, int). 2020-06-27 09:24:06 -04:00
Gary Gregory 1621a23d2b Make org.apache.commons.lang3.CharSequenceUtils.toCharArray(CharSequence)
public.
2020-06-26 15:32:13 -04:00
Gary Gregory 10f6a80c96 No need to nest. 2020-06-26 15:31:00 -04:00
Gary Gregory bb017e0d4d JRE locks live in a ...concurrent.locks package so let's put our lock
code in our own ...concurrent.locks.
2020-06-26 14:35:14 -04:00
Gary Gregory 46a081d69c Javadocs, imports. 2020-06-26 10:33:37 -04:00
Gary Gregory d18fb1abdf JRE locks live in a ...concurrent.lock package so let's put our lock
code in our own ...concurrent.lock
2020-06-26 09:04:17 -04:00
Rob Tompkins eee51821a8 fix: nit in my changes.xml formatting 2020-06-26 06:15:23 -04:00
Rob Tompkins e5108df458 Thanks Jin for refining the test output for FastDateParserTest
Signed-off-by: Rob Tompkins <chtompki@apache.org>
2020-06-26 06:12:51 -04:00
Rob Tompkins c79e548fc4 Merge branch 'fix_FastDateParserTest' of https://github.com/XenoAmess/commons-lang 2020-06-26 06:00:05 -04:00
Jochen Wiedmann bf7aa89ca4 Adding Javadocs for the Locks.Lock class. Improvements in the test suite. 2020-06-26 05:53:15 -04:00
Rob Tompkins acaf458278 LANG-1549: Thanks Jin 2020-06-26 05:52:48 -04:00
XenoAmess e04966a612 refine tests 2020-06-26 05:52:48 -04:00
XenoAmess 249d9e4744 refine tests 2020-06-26 05:52:48 -04:00
XenoAmess a9dea5e5c4 refine tests 2020-06-26 05:52:48 -04:00
XenoAmess d02958ca09 refine tests 2020-06-26 05:52:48 -04:00
XenoAmess bbc2e7ee85 refine tests 2020-06-26 05:52:48 -04:00
XenoAmess 00ecd339bd fix checkstyle 2020-06-26 05:52:48 -04:00
XenoAmess 73438e431e fix checkstyle 2020-06-26 05:52:48 -04:00
XenoAmess 05724b2baa reformat test 2020-06-26 05:52:48 -04:00
XenoAmess 217da1e6aa implement lastIndexOf 2020-06-26 05:52:48 -04:00
XenoAmess dee8f6fb84 implement lastIndexOf 2020-06-26 05:52:48 -04:00
XenoAmess 68cb8af7e4 Revert "performance improve."
This reverts commit 3b05b95a
2020-06-26 05:52:48 -04:00
XenoAmess 3ef823e8e1 performance improve. 2020-06-26 05:52:48 -04:00
XenoAmess 567388428c performance improve. 2020-06-26 05:52:48 -04:00
XenoAmess c7c2dd783a Merge branch 'master' of https://github.com/apache/commons-lang into fix_FastDateParserTest 2020-06-26 16:55:41 +08:00
XenoAmess dd5d284e86 refine tests 2020-06-26 16:54:16 +08:00
Gary Gregory b69c4759ed [LANG-1568] Javadoc. 2020-06-25 13:57:28 -04:00
Gary Gregory 268d4936d4 [LANG-1568] Predicate or. 2020-06-25 10:52:37 -04:00
Gary Gregory 180d948d7f [LANG-1568] Predicate add. 2020-06-25 10:42:13 -04:00
Gary Gregory c7d709b220 [LANG-1568] Predicate negation and clean ups. 2020-06-25 10:29:57 -04:00
Gary Gregory a881c3e226 [LANG-1568] Predicate negation. 2020-06-25 10:19:10 -04:00
Gary Gregory 00c8096cbf [LANG-1568] Complete FailableFunction. 2020-06-25 09:44:22 -04:00
Gary Gregory 9273b557b7 [LANG-1568] Checktyle. 2020-06-25 09:32:14 -04:00
Gary Gregory 487f5887bb [LANG-1568] Javadoc. 2020-06-25 09:17:49 -04:00
Gary Gregory e12eb5d4d7 [LANG-1568] FailableDoubleUnaryOperator, FailableIntUnaryOperator,
FailableLongUnaryOperator.
2020-06-25 09:01:13 -04:00
Gary Gregory 5f2fa64137 Checktyle. 2020-06-25 08:46:50 -04:00
Gary Gregory 97611fda5d [LANG-1568] Lambda clean ups. 2020-06-24 20:28:44 -04:00
Gary Gregory d4ccd259d9 [LANG-1568] More checked andThen() implementations to mirror the JRE
functional interfaces.
2020-06-24 20:10:46 -04:00
Gary Gregory 47fb776792 [LANG-1568]
org.apache.commons.lang3.function.FailableConsumer.andThen(FailableConsumer<?
super T, E>)
2020-06-24 18:40:25 -04:00
Gary Gregory c7aea90a7a [LANG-1568]
org.apache.commons.lang3.function.FailableBiFunction.andThen(FailableFunction<?
super R, ? extends V, E>)
2020-06-24 18:25:47 -04:00
Gary Gregory 4badcde7f7 [LANG-1568]
org.apache.commons.lang3.function.FailableBiConsumer.andThen(FailableBiConsumer<?
super T, ? super U, E>)
2020-06-24 17:03:17 -04:00
Gary Gregory e7c421ff35 [LANG-1568]
org.apache.commons.lang3.function.FailableBiConsumer.andThen(FailableBiConsumer<?
super T, ? super U, E>)
2020-06-24 17:02:35 -04:00
Gary Gregory 9173173699 [LANG-1568]
org.apache.commons.lang3.function.FailableBiConsumer.andThen(FailableBiConsumer<?
super T, ? super U, E>)
2020-06-24 16:58:52 -04:00
Gary Gregory 4cf50486a3 Use the same generic parameter names as the JRE. 2020-06-24 13:00:21 -04:00
Gary Gregory 1861ab9388 Use the same generic parameter names as the JRE. 2020-06-24 12:51:04 -04:00
Gary Gregory cae8364d9e Use final. 2020-06-24 10:55:15 -04:00
Gary Gregory c5c839ff82 Whitespace. 2020-06-24 10:54:37 -04:00
Gary Gregory 05803b0d58 Add JavaVersion enum constants for Java 16.
Tested with:
openjdk version "16-ea" 2021-03-16
OpenJDK Runtime Environment (build 16-ea+2-35)
OpenJDK 64-Bit Server VM (build 16-ea+2-35, mixed mode, sharing)
2020-06-24 10:53:55 -04:00
Gary Gregory c10c62ed73 Fix boxing/unboxing. 2020-06-24 10:47:00 -04:00
Gary Gregory 94d5208dd9 Fix boxing/unboxing. 2020-06-24 10:44:46 -04:00
Gary Gregory fb184a7650 Clean up imports. 2020-06-24 10:43:04 -04:00
Gary Gregory c56c77ed95 Remove methods that will be new in 3.11 but which are now in the
function package.
2020-06-24 10:41:19 -04:00
Gary Gregory 1dddec8ba8 [LANG-1542] ToStringBuilder.reflectionToString - Wrong JSON format when
object has a List/Array of Enum.
2020-06-24 09:26:11 -04:00
Gary Gregory deb5f817af Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2020-06-24 08:50:07 -04:00
Gary Gregory f070987f5d [LANG-1567] Fix Javadocs for EqualsBuilder#setTestRecursive() #556. 2020-06-24 08:49:58 -04:00
Miguel Muñoz a7be33e9c6
Fixed Javadocs for setTestRecursive() (#556) 2020-06-24 08:46:21 -04:00
Gary Gregory dc54284ee7 Javadoc. 2020-06-24 08:44:16 -04:00
Gary Gregory a14b28923e Clean ups.
- Fix Javadoc
- Simplify error message
- Rmove on layer of API call.
2020-06-24 08:42:16 -04:00
Gary Gregory c26c72f8a8 Add ObjectUtils.toString(Object, Supplier<String>). 2020-06-23 15:15:38 -04:00
Gary Gregory 45b32d3a9c Sort members. 2020-06-23 15:10:54 -04:00
Gary Gregory 6315e8c138 Javadoc. 2020-06-23 14:22:46 -04:00
Gary Gregory 341aaa797d Added ImmutablePair factory methods left() and right(). 2020-06-23 11:07:22 -04:00
Gary Gregory 744da0e255 Update dependencies.
- org.apache.commons:commons-parent 50 -> 51
- biz.aQute.bnd:biz.aQute.bndlib 5.1.0 -> 5.1.1
- com.github.spotbugs:spotbugs 4.0.4 -> 4.0.5
2020-06-23 10:40:33 -04:00
Gary Gregory 5ffe008074 Undo "fix", @DefaultLocale is used in this test. 2020-06-22 09:32:10 -04:00
Gary Gregory 91dafbcea8 Fix typos. 2020-06-22 09:29:31 -04:00
Gary Gregory 64b2f90d20 Fix bug in test. 2020-06-22 09:28:58 -04:00
Gary Gregory b7b4ae33dc Formatting. 2020-06-22 09:15:29 -04:00
Gary Gregory 4d403b4ff3 Formatting. 2020-06-22 09:14:34 -04:00
Gary Gregory e291a601db Formatting. 2020-06-22 08:52:25 -04:00
XenoAmess acb237c52d add a single test for showing up the problem 2020-06-20 01:41:01 +08:00
XenoAmess 5b350aa33b refine test output for FastDateParserTest 2020-06-20 00:57:18 +08:00
Gary Gregory 6363fced4b Better method names. 2020-06-19 11:06:52 -04:00
Gary Gregory a33b86e61f Better method names. 2020-06-19 11:03:14 -04:00
Gary Gregory 45e38e91f9 Better method names. 2020-06-19 11:02:54 -04:00
Gary Gregory bb270696fd Tests are public by convention on Commons Lang. 2020-06-18 12:49:40 -04:00
Gary Gregory ed0f5bea11 Reimplement such that locking and unlocking take place in the same
method.
2020-06-18 12:48:46 -04:00
Gary Gregory f05c39b6e4 Use names that reflect the functional interface in use. 2020-06-18 12:36:00 -04:00
Gary Gregory d22f4e1e61 Clean up generics. 2020-06-18 08:16:51 -04:00
aherbert 4453bb3ede Fix @since for new o.a.c.lang3.stream.Streams class.
This replaces o.a.c.lang3.Streams.
2020-06-18 12:13:15 +01:00
aherbert 3302d5040b Correct code example in javadoc header 2020-06-18 12:10:20 +01:00
aherbert 5d675a0e29 Add skeleton package-info 2020-06-18 12:09:50 +01:00
aherbert 093dd682d2 Remove redundant import 2020-06-18 11:49:20 +01:00
aherbert f53ff8cc20 Checkstyle: new line at end of file 2020-06-18 11:48:12 +01:00
aherbert abf6899e07 Use upper case L on long declarations 2020-06-18 11:46:51 +01:00
aherbert 46acdde8bd Fix comment typos 2020-06-18 09:25:25 +01:00
Gary Gregory 8fcefb4f98 Centralize stream code in our own 'stream' package as
a parallel to the JRE's java.util.stream package.

- Re-implement use of failable function interfaces based on our function
package.
- Deprecate old class.
- Remove trainling whitespace.
2020-06-17 17:37:14 -04:00
Gary Gregory 724c00f0e8 Follow current style: @Test methods are public. 2020-06-17 17:16:19 -04:00
Gary Gregory e22a5ea87a Javadoc. 2020-06-17 17:13:40 -04:00
Gary Gregory fc686a48ef We have a concurrent package, and JRE locks live in a similar package,
so let's put our new code in there.
2020-06-17 16:53:15 -04:00
Gary Gregory 7ba418fc6f Centralize failable functional interfaces in our 'function' package as
the parallel to the JRE's java.util.function package.

Deprecate old class.
2020-06-17 16:46:10 -04:00
Gary Gregory 5d1a5517c9 Fix checkstyle: End files in a new line. 2020-06-17 16:38:47 -04:00
Gary Gregory 74d8ad5c2c Add missing @Deprecated. 2020-06-17 16:22:05 -04:00
Gary Gregory 8b54728564 Create the new package org.apache.commons.function to parallel the JRE's
java.util.function to provide home for our "failable" version of the
JRE's functional interfaces.
2020-06-17 15:58:26 -04:00
Gary Gregory 9214c65371 Merge conditions using the same blocks. 2020-06-17 11:05:04 -04:00
Gary Gregory 36111ba582 [LANG-1568] More failable functional interfaces to match JRE functional
interfaces.
2020-06-17 09:30:21 -04:00
Bruno P. Kinoshita 79adb9f677 [LANG-1546]: add changelog 2020-06-16 14:15:06 +12:00
Gary Gregory 438716a839 Add edge case. 2020-06-15 09:17:23 -04:00
Gary Gregory 7f90306f90 [LANG-1568] More failable functional interfaces to match JRE functional
interfaces.
2020-06-14 19:27:23 -04:00
Gary Gregory 133327272a Sort members. 2020-06-14 14:59:02 -04:00
Gary Gregory 9d1c7bc17c LANG-1557] Change a Pattern to a static final field, for not letting it
compile each time the function invoked. #542
2020-06-14 09:47:49 -04:00
XenoAmess 677604fb84
[LANG-1557] Change a Pattern to a static final field, for not letting it compile each time the function invoked. (#542)
* Pattern_to_static_

* move the constants to head of the file.

* Simplify private comment.

Co-authored-by: Gary Gregory <garydgregory@users.noreply.github.com>
2020-06-14 09:46:53 -04:00
Gary Gregory 7852ed9d4d Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2020-06-14 09:44:59 -04:00
Gary Gregory ab7b6734d3 [LANG-1565] change removeLastFieldSeparator to use endsWith #550. 2020-06-14 09:44:53 -04:00
XenoAmess 1406f67252
[LANG-1565] change removeLastFieldSeparator to use endsWith (#550)
* change_removeLastFieldSeparator_to_use_endsWith

* stylecheck

* revert mis-changes about orders of imports.
2020-06-14 09:43:59 -04:00
XenoAmess 9fcd9c86ed fix checkstyle. 2020-06-14 11:31:41 +12:00
Gary Gregory e2c0396660 [LANG-1556] Use Java 8 lambdas and Map operations. #541 2020-06-13 18:34:51 -04:00
XenoAmess 797d550a92
[LANG-1556] Use Java 8 lambdas and Map operations. (#541)
* java8

* refine

* rebase
2020-06-13 18:33:29 -04:00
Gary Gregory 78c1c7f9ab [LANG-1570] JavaVersion enum constants for Java 14 and 15. #553. 2020-06-13 18:32:37 -04:00
Gary Gregory 4e3151a8ff [LANG-1570] JavaVersion enum constants for Java 14 and 15. #553. 2020-06-13 18:31:58 -04:00
Gary Gregory 98eda51817 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2020-06-13 18:30:50 -04:00
Edgar Asatryan 31d7eea1c6
[LANG-1570] JavaVersion enum constants for Java 14 and 15. (#553) 2020-06-13 18:30:38 -04:00
Gary Gregory 306dbb0cb0 Add missiing "test 2020-06-13 16:06:26 -04:00
Gary Gregory 628044f75a Sort methods. 2020-06-13 16:04:57 -04:00
Edgar Asatryan 496eb10372
Use ArrayUtils::isArrayIndexValid method in ArrayUtils::get. (#552) 2020-06-13 14:05:33 -04:00