Commit Graph

5974 Commits

Author SHA1 Message Date
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 8a2d7afd9f Merge branch 'pr-428'
This closes #428
2020-06-16 14:15:50 +12:00
Bruno P. Kinoshita 79adb9f677 [LANG-1546]: add changelog 2020-06-16 14:15:06 +12:00
XenoAmess 0c42c0c192 [LANG-1546]: delete `<encoding>` and `<docencoding>` in maven-javadoc-plugin 2020-06-16 14:08:36 +12:00
Gary Gregory 438716a839 Add edge case. 2020-06-15 09:17:23 -04:00
XenoAmess cf0778a5ad
Add binary compatibility check to Maven default goal (#555)
* add bc detect as discussed in mailing list.

* add bc detect as discussed in mailing list.
2020-06-14 22:08:10 -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 494a4db395 Disable Clirr since we use JApiCmp. 2020-06-13 16:09:58 -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
Gary Gregory 553a3a75df [LANG-1528] StringUtils.replaceEachRepeatedly gives
IllegalStateException #505.
2020-06-13 11:33:08 -04:00
Edwin Delgado H d62d4e21ef
[LANG-1528] replaceEachRepeatedly gives IllegalStateException (#505)
* Fix https://issues.apache.org/jira/browse/LANG-1528

* Fix https://issues.apache.org/jira/browse/LANG-1528

Co-authored-by: Edwin DH <peo_ehuaynalaya@uolinc.com>
2020-06-13 11:31:07 -04:00
Gary Gregory 995dba307c [LANG-1559] convert Sting to StringBuilder in some test code. #544. 2020-06-13 11:20:23 -04:00
XenoAmess 48ee23a7dd
Sting_to_StringBuilder (#544) 2020-06-13 11:19:29 -04:00
Gary Gregory 1e0b744dd2 [LANG-1558] Simplify if as some conditions are covered by others #543. 2020-06-13 11:18:27 -04:00
XenoAmess fb2d228380
simplify_if (#543) 2020-06-13 11:17:52 -04:00