Commit Graph

5276 Commits

Author SHA1 Message Date
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
Jerry Zhao d575057852 LANG-1375: defaultString(str) reuses defaultString(str, defaultStr) 2018-01-20 13:12:33 +11:00
pascalschumacher e72654ed5a SystemDefaultsSwitch: fix javadoc code example 2018-01-14 11:24:59 +01:00
pascalschumacher e843239cf9 LANG-1372: Add ToStringSummary annotation
add changes.xml entry
2018-01-12 18:31:10 +01:00
Sergio Ozaki f5ebb9a649 LANG-1372: Add ToStringSummary annotation (closes #281) 2018-01-12 18:28:27 +01:00
pascalschumacher 63f11e9dc1 LANG-1352: EnumUtils.getEnumIgnoreCase and isValidEnumIgnoreCase methods added
add since javadoc tags and changes.xml entry
2018-01-12 17:59:09 +01:00
Ruslan Sibgatullin 0b70b01a9f LANG-1352: EnumUtils.getEnumIgnoreCase and isValidEnumIgnoreCase methods added (closes #286) 2018-01-12 17:58:38 +01:00
pascalschumacher 30dcb8de48 pom.xml: use commons.module.name property as Automatic-Module-Name 2018-01-07 18:13:07 +01:00
pascalschumacher 066665ea65 pom.xml: remove outdated and no longer correct comment about Automatic-Module-Name being implemented in Parent POM 2018-01-07 18:01:46 +01:00
pascalschumacher b2939a7e30 Update to easymock version 3.5.1 2018-01-07 11:06:27 +01:00
pascalschumacher d1b149fe12 Update to commons-parent version 43 2018-01-07 11:03:42 +01:00
Rob Tompkins 3c0308db7f Happy New Year 2018-01-06 20:28:52 -05:00
Bruno P. Kinoshita c614fbcc79 LANG-1374: fix logic in isJsonArray method of JsonToStringStyle 2018-01-04 22:15:08 +13:00
Gary Gregory f5a9effebd Don't use single letter variable names. 2017-12-21 09:01:21 -07:00
Gary Gregory 5fb74a6618 Rename parameter 't' to 'thread'. 2017-12-21 08:57:29 -07:00
Gary Gregory 6dfc3e6403 Don't need internal ivar name for a boolean to carry a "Flag" postfix. 2017-12-21 08:47:30 -07:00
Gary Gregory 49a876cb1c Don't need internal ivar name for a boolean to carry a "Flag" postfix. 2017-12-21 08:46:30 -07:00
pascalschumacher 4f13c68918 README.md: update version in dependency xml fragment 2017-12-20 17:25:59 +01:00
pascalschumacher 4661422633 LANG-1371: Fix TypeUtils.parameterize to work correctly with narrower-typed varargs array
add changes.xml entry
2017-12-20 17:20:54 +01:00