Commit Graph

5494 Commits

Author SHA1 Message Date
Gary Gregory bcc4f82a7a [LANG-1238] Add RegexUtils class instead of overloadinh methods in
StringUtils that take a regex to take precompiled Pattern. Sort methods.
2018-05-17 17:15:19 -06:00
Gary Gregory 44b6d2ead5 [LANG-1238] Add RegexUtils class instead of overloadinh methods in
StringUtils that take a regex to take precompiled Pattern. Javadoc
tweaks.
2018-05-17 17:14:36 -06:00
Oleg Chubaryov 7129c43b08 [LANG-1238] Add RegexUtils class instead of overloadinh methods in
StringUtils that take a regex to take precompiled Pattern.
2018-05-17 17:12:46 -06:00
Gary Gregory 5d4916933d Fix broken XML. 2018-05-17 15:15:28 -06:00
pascalschumacher 961e4a821b Travis: Allow failures on Java 11, because some FastDateParser tests currently fail with "java.text.ParseException: Unparseable date" 2018-05-15 22:03:20 +02:00
pascalschumacher 6996686b6b Travis: Switch from Cobertura to Jacoco, because Cobertura does not work on Java 9+. Cobertura-Maven-Plugin fails on Java 10+ even if execution is skipped.
Skip Jacoco on Java 11, because Jacoco does not support it yet (see: https://github.com/jacoco/jacoco/issues/663).
2018-05-15 22:03:20 +02:00
pascalschumacher a7b06d6250 Travis: Add Java 10 "Oracle JDK", Java 10 "OpenJDK", Java 11 "Oracle JDK" 2018-05-15 22:03:20 +02:00
Gary Gregory 5fa073a5ca Typo: 'JavaDoc' -> 'Javadoc'. 2018-05-15 12:58:01 -06:00
Sebb 3fadfdd69f LANG-1396 - JsonToStringStyle does not escape string names 2018-05-10 13:08:07 +01:00
Sebb e7d16c2762 LANG-1395 - JsonToStringStyle does not escape double quote in a string
value
2018-05-09 18:28:19 +01:00
Sebb 362dd935f8 Javadoc correction to agree with code 2018-05-09 09:47:25 +01:00
pascalschumacher 393ad2db73 Update commons-parent to version 46 2018-05-05 13:41:30 +02:00
Roman Golyshev 69a8ef3189 (doc) remove invalid example of `lastIndexOf` (closes #327)
- `StringUtils.lastIndexOf("aabaabaa", "ba", 2)  = -1` is invalid; moreover, example below is applied to the same arguments, but gets another (correct) result
2018-04-29 09:37:57 +02:00
Oleg Chubaryov 38cf0c68d5 [LANG-1391] Improve Javadoc for StringUtils.isAnyEmpty(null). 2018-04-26 12:07:11 -04:00
Gary Gregory 58a8f12b44 [LANG-1394] org.apache.commons.lang3.SystemUtils should not write to
System.err.
2018-04-22 10:45:43 -06:00
Gary Gregory 7c441e87cf [LANG-1393] Add API SystemUtils.String getEnvironmentVariable(final
String name, final String defaultValue). Fix @since tag.
2018-04-20 10:15:32 -06:00
Gary Gregory efba54d35f [LANG-1393] Add API SystemUtils.String getEnvironmentVariable(final
String name, final String defaultValue).
2018-04-20 08:55:32 -06:00
Gary Gregory 8e3ec1722b [LANG-1391] Improve Javadoc for StringUtils.isAnyEmpty(null). 2018-04-18 12:26:02 -06:00
Alfredo Ferreira b41e918186 Update GitHub PR help link (closes #322) 2018-04-06 16:03:47 +02:00
pascalschumacher 937ae45ed4 README.md: update javadoc badge for 3.7 2018-04-04 09:39:35 +02:00
Allon Mureinik e51bd89201 SerializatoinUtilsTest assertArraysEquals (closes #321)
Utilize assertArraysEquals to compare arrays instead of boiler plate
implementing it with a for loop.

This change both makes the test code cleaner and improves the output
in case of an assertion failure by showing all the differences between
the two arrays instead of stopping at the first.
2018-04-04 09:32:29 +02:00
Allon Mureinik 1415c9a2a6 SerializationUtilsTest expected exceptions
Use the expected argument of the @Test annotation instead of
boiler-plate implementing this behavior with a try-catch-fail
construct in order to clean up the code and make it more obvious to
the reader.
2018-04-04 09:32:22 +02:00
Allon Mureinik aff0fae2ec SerializationUtilsTest identity assertions
Replaced calls to assertTrue with a != condition with calls to
assertNotSame calls.
This change retains the functionality, but will produce a more
detailed error message in case the assertion fails.
It also (arguably) makes the test code more straight-forward.
2018-04-04 09:32:22 +02:00
Gary Gregory 9901bf98e4 Some reflection tests must account for classes files being instrumented
by Jacoco.
2018-03-29 13:27:45 -06:00
Gary Gregory 17f9d22f33 Some reflection tests must account for classes files being instrumented
by Jacoco.
2018-03-29 13:26:59 -06:00
Gary Gregory 56b7ae44f9 Update test for Java 11 EA. 2018-03-29 11:52:05 -06:00
Gary Gregory c53c2cbc11 Update commons-parent from 43 to 45. 2018-03-29 09:13:54 -06:00
Gary Gregory a098f04106 Better description. 2018-03-29 09:01:12 -06:00
Gary Gregory 06be0be267 Next release will be this year one can only hope. 2018-03-29 08:59:37 -06:00
Gary Gregory 8b62c114cf [LANG-1385] NumberUtils.createNumber() throws
StringIndexOutOfBoundsException instead of NumberFormatException.
2018-03-10 18:16:24 -07:00
Gary Gregory 9c886bd4a1 Predictable randomness in shuffle tests. Closes #317 from Allon
Murienik's PR https://github.com/apache/commons-lang/pull/317
2018-03-09 15:06:03 -07:00
Gilles Sadowski 1a8d276278 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-lang 2018-03-08 16:29:05 +01:00
Gilles Sadowski 53bb395988 Track changes. 2018-03-08 16:28:17 +01:00
Gary Gregory 357fe13788 Redundant specification of type arguments. 2018-03-08 08:19:25 -07:00
Gilles Sadowski 50ce8c44e1 LANG-1384: Version "11" is available. 2018-03-08 13:54:31 +01:00
Gilles Sadowski cb686673a7 LANG-1384: Fix NPE when version >= 11
The fix is likely to be insufficient if the version naming scheme changes.
2018-03-08 13:17:00 +01:00
pascalschumacher 0820c4c895 Use java9 profile on JDK 9 and later 2018-03-02 17:28:19 +01:00
Gary Gregory 415eb9ebb7 Update Maven Checstyle plugin from 2.17 to 3.0.0. 2018-02-23 19:13:01 -07:00
Gary Gregory 284de66aaf Update Maven PMD plugin from 3.8 to 3.9.0. 2018-02-23 16:10:43 -07:00
Rob Tompkins bb3fe2a379 another formatting nit, one or the other is already null 2018-02-14 13:01:51 -05:00
Rob Tompkins 2c0429aabd formatting nit, one or the other is already null 2018-02-14 12:56:44 -05:00
pascalschumacher 2e9f3a8014 LANG-1356: Add bypass option for classes to recursive and reflective EqualsBuilder
Patch supplied by Yathos UG
2018-02-11 20:43:05 +01:00
Piotr Kosmala 2ce4049407 LANG-1060: NumberUtils.isNumber assumes number starting with Zero is octal
Add additional tests (closes #314)
2018-02-11 14:55:21 +01:00
pascalschumacher 60412131f3 LANG-1364: ExceptionUtils#getRootCause(Throwable t) should return t if no lower level cause exists
This makes the behavior of getRootCause consistent with getRootCauseMessage and getRootCauseStackTrace.
2018-02-11 14:19:56 +01:00
pascalschumacher 3a4ac35798 harmonize since javadoc tags content (remove "(Commons )Lang") 2018-02-11 14:08:40 +01:00
pascalschumacher 7eb47fd85e CloneFailedException: remove "@since upcoming" from constructors javadoc, because these constructors were added in the same version as the class itself (3.0) 2018-02-11 14:03:33 +01:00
pascalschumacher 6684a76317 add changes.xml entry for "LANG-1060: NumberUtils.isNumber assumes number starting with Zero" 2018-02-11 12:09:19 +01:00
Piotr Kosmala c8e61afdb8 LANG-1060: NumberUtils.isNumber assumes number starting with Zero is octal (closes #313) 2018-02-11 12:08:33 +01:00
pascalschumacher c3b1fefbad NumberUtils#isCreatable: remove java 6 only code, as commons-lang requires at java 7+ now 2018-02-11 11:49:44 +01:00
Bruno P. Kinoshita f50ec5e608 LANG-1375: add changes.xml entry 2018-01-20 17:02:55 +13:00