Commit Graph

5585 Commits

Author SHA1 Message Date
Gary Gregory 24e6468683 [LANG-1498] Add support of lambda value evaluation for defaulting
methods #416.
2019-11-04 17:53:58 -05:00
Gary Gregory 16cc98fbfa Fix Java 11 Javadoc. 2019-11-03 18:53:42 -05:00
Gary Gregory 8445d3a991 [LANG-1498] Add support of lambda value evaluation for defaulting
methods #416.

A few more tests.
2019-11-01 00:09:59 -04:00
Gary Gregory a4c60c4e01 [LANG-1498] Add support of lambda value evaluation for defaulting
methods #416.

Better param name.
2019-11-01 00:04:02 -04:00
Gary Gregory c47e5f95f6 [LANG-1498] Add support of lambda value evaluation for defaulting
methods #416.

Add org.apache.commons.lang3.ObjectUtils.defaultIfNull(T, Supplier<T>).
2019-10-31 21:16:17 -04:00
Gary Gregory 89d2edbf17 Sort members. 2019-10-29 10:38:34 -04:00
Gary Gregory aaabb3eff8 [LANG-1177] Added indexesOf methods and simplified removeAllOccurences
#471.
2019-10-29 10:37:23 -04:00
Liel Fridman 55a2a03aa3 [LANG-1177] Added indexesOf methods and simplified removeAllOccurences (#471)
* [LANG-1177] Added indexesOf methods and simplified removeAllOccurences in ArrayUtils

* [LANG-1177] Fixed style error

* [LANG-1177] Added @since tags for newly provided methods

* changing BitSet vars name to bitSet and inlining the 'foundBits'

* Fixed Javadoc in indexesOf

* Fixed trailing spaces

* Fixing a trailing space
2019-10-29 10:35:36 -04:00
Gary Gregory 619a7024c4 Sort methods. 2019-10-28 14:30:14 -04:00
Gary Gregory be1536fe56 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2019-10-28 14:29:00 -04:00
Gary Gregory b26198d2e9 [LANG-1495] Add EnumUtils getEnum() methods with default values #475. 2019-10-28 14:28:50 -04:00
vlcheong 4a934610e7 LANG-1495 Update EnumUtils.java (#475)
* Update EnumUtils.java

* LANG-1495 Add Overloading Methods To EnumUtils

LANG-1495 Add Overloading Methods To EnumUtils

* Add @since 3.10
2019-10-28 14:26:26 -04:00
Gary Gregory 7ffa9265e0 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git 2019-10-28 13:34:05 -04:00
Gary Gregory e55a870d36 Add @SuppressWarnings. 2019-10-28 13:28:37 -04:00
apirom9 54afdb3035 Add more test inputs for ArrayUtils.toMap() method (#472)
* Add more test inputs for ArrayUtils.toMap() method in case zero-length array, all null values array, and duplicate keys in array

* Fixed style

* Fixed style

* Fixed as changed request

* Remove unused import statement
2019-10-25 09:15:08 -04:00
Gary Gregory ac00199379 [LANG-1494] Add org.apache.commons.lang3.time.CalendarUtils. 2019-10-18 16:08:46 -04:00
Gary Gregory 9489d55d5c Drop Subversion Id keywords. 2019-10-17 17:25:34 -04:00
Gary Gregory 1aea1a6044 Drop Subversion Id keywords. 2019-10-17 14:27:52 -04:00
Gary Gregory 9b3b490360 AnnotationUtils little cleanup #467. 2019-10-15 18:32:13 -04:00
Peter Verhas f3ad91ca38 AnnotationUtils little cleanup (#467)
* LANG-1480 getAbbreviatedName refactored to create appropriate length short class names

* LANG-1480 code fixed for special extreme case ".." abbreviated to 1 length should result ".." it was throwing exception. Tests are added

* import changed to avoid wild cards
apache master merged into current branch

* Mutable object import was moved to it's original place

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* added another test case

* LANG-1480 fixing JavaDoc documentation as per requested by garydgregory

* LANG-1480 shortcut implemented, argument renamed, more tests

* LANG-1480 checkstyle update

* LANG-1492 tests methods modified to be public

* LANG-1480 imports rearranged

* LANG-1480 imports rearranged

* LANG-1480 imports rearranged

* little refactor

* unused import deleted

* space+

* space-
2019-10-15 18:30:59 -04:00
Peter Verhas bedae6950d LANG-1480 getAbbreviatedName refactored to create appropriate length … (#446)
* LANG-1480 getAbbreviatedName refactored to create appropriate length short class names

* LANG-1480 code fixed for special extreme case ".." abbreviated to 1 length should result ".." it was throwing exception. Tests are added

* import changed to avoid wild cards
apache master merged into current branch

* Mutable object import was moved to it's original place

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* some accidental formatting reverted

* added another test case

* LANG-1480 fixing JavaDoc documentation as per requested by garydgregory

* LANG-1480 shortcut implemented, argument renamed, more tests

* LANG-1480 checkstyle update

* LANG-1492 tests methods modified to be public

* LANG-1480 imports rearranged

* LANG-1480 imports rearranged

* LANG-1480 imports rearranged

* imports were added that were accidentally removed during merging master
2019-10-12 15:16:54 -04:00
Peter Verhas a32c188c32 Code refactor to simplify Functions and new tests (#463)
* more tests

* formatting change as per requested by checkstyle

* DisplayName was added to the tests

* throw on odd refactored to eliminate copy paste
2019-10-12 15:12:17 -04:00
Gary Gregory c42806cfa0 [LANG-696] Update documentation related to the issue LANG-696 #449. 2019-10-08 14:55:21 -04:00
Gary Gregory 6102734c93 [LANG-696] Update documentation related to the issue LANG-696 #449. 2019-10-08 14:55:07 -04:00
Peter Verhas 23f18044d1 Update documentation related to the issue LANG-696 (#449)
* mainly documentation and some more tests, which are used in the
documentation manually copied from unit test to javaDoc

* fixed fragile unit tests (still fragile)
LANG-696 added the warning lines as requested by Stzx

* LANG-1480 checkstyle update, space inserted

* LANG-1480 import * was removed
2019-10-08 14:53:01 -04:00
Gary Gregory 84636da769 - Fix trailing whitespace.
- maven-checkstyle-plugin 3.0.0 -> 3.1.0.
- com.puppycrawl.tools:checkstyle 8.24 -> 8.25.
2019-10-05 11:22:30 -04:00
Gary Gregory 99f64671b0 Improve Javadoc based on the discussion of the GitHub PR #459. 2019-10-05 09:27:06 -04:00
Gary Gregory c1fbeee23e Improve Javadoc based on the discussion of the GitHub PR #459. 2019-10-05 09:21:40 -04:00
Gary Gregory 4f3d3b4318 [LANG-1426] Corrected usage examples in Javadocs #458. 2019-09-25 10:37:10 -04:00
Mikko Maunu 089b43a0a6 [LANG-1426] Corrected usage examples in Javadocs (#458)
* [LANG-1426] Corrected usage examples in Javadocs

* [LANG-1426] Added @throws Javadoc, corrected verb from check to truncate and consistently mimicking exception message in assertion message
2019-09-25 10:32:10 -04:00
pascalschumacher 46b381eb4b Travis CI: Drop Java 12 build (Java 13 is now Generally Available). 2019-09-20 10:15:56 +02:00
Gary Gregory 29723e851c Javadoc. 2019-09-13 17:25:30 -04:00
Gary Gregory aac260f84c Document interfaces with @FunctionalInterface.
Javadoc.
2019-09-13 11:47:47 -04:00
Gary Gregory a1395b6823 One empty line between methods. 2019-09-13 11:40:24 -04:00
Gary Gregory 26ed080b46 Sort members. 2019-09-13 11:39:08 -04:00
Gary Gregory 3ea8244287 More lambdas, less boilerplate. 2019-09-12 20:42:35 -04:00
Gary Gregory 15d9a6b052 Fix typo; thanks to Alex Herbert. 2019-09-12 15:52:58 -04:00
Gary Gregory e144ca6816 Spotbugs is already run as part of the Maven default build goal. 2019-09-12 09:09:20 -04:00
Gary Gregory 9a3f74709c Remove trailing white spaces on all lines. 2019-09-11 14:55:33 -04:00
Gary Gregory 59231ca9c2 [LANG-1453] StringUtils.removeIgnoreCase("İa", "a") throws
IndexOutOfBoundsException #423.
2019-09-11 14:50:15 -04:00
Gary Gregory 43f8e31bf5 Use our own APIs. 2019-09-11 11:40:37 -04:00
Gary Gregory d572b37a7d Use our own APIs. 2019-09-11 11:15:21 -04:00
Gary Gregory 975df007a5 Fix Javadoc. 2019-09-11 11:06:21 -04:00
Gary Gregory c3077ad1c1 Sort members. 2019-09-11 10:25:48 -04:00
Gary Gregory a3aa116d35 Javadoc. 2019-09-11 10:21:23 -04:00
Gary Gregory e7c6c5b66b [LANG-1406] StringIndexOutOfBoundsException in
StringUtils.replaceIgnoreCase

Fix dead store issue found by SpotBugs and enforce SpotBugs on CI
builds.
2019-09-11 09:57:28 -04:00
Gary Gregory 651c8f5c23 Remove trailing white spaces on all lines 2019-09-11 09:29:56 -04:00
Gary Gregory 990644599d com.puppycrawl.tools:checkstyle 8.23 -> 8.24. 2019-09-11 09:29:43 -04:00
Gary Gregory f83d6e3fe0 [test] junit-jupiter 5.5.1 -> 5.5.2. 2019-09-11 09:17:46 -04:00
geratorres d68e2e9125 [LANG-1406] StringIndexOutOfBoundsException in
StringUtils.replaceIgnoreCase

Closes #423.
2019-09-11 09:12:53 -04:00