Commit Graph

5838 Commits

Author SHA1 Message Date
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
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 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