Commit Graph

5906 Commits

Author SHA1 Message Date
Gary Gregory 425d8085cf Prepare for releasing 3.7. 2017-11-04 12:09:44 -06:00
Gary Gregory 8635d807fb Prepare for releasing 3.7. 2017-11-04 12:03:44 -06:00
Gary Gregory 6aeb71b0d6 Prepare for releasing 3.7. 2017-11-04 12:01:45 -06:00
Gary Gregory 5f4b07d9b4 Prepare for releasing 3.7. 2017-11-04 12:00:27 -06:00
Gary Gregory 77d75526cd Prepare for releasing 3.7. 2017-11-04 11:57:43 -06:00
Gary Gregory 641367d98c Prepare for releasing 3.7. 2017-11-04 11:55:23 -06:00
Gary Gregory 95286e641b Update benchmark tests from JMH 1.17.4 to 1.19. 2017-11-04 11:54:47 -06:00
Gary Gregory 3253e99b91 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-lang.git 2017-11-04 11:33:28 -06:00
Gary Gregory 49e185294e maven-pmd-plugin 3.7 -> 3.8. 2017-11-04 11:29:40 -06:00
pascalschumacher 98581d3c41 LANG-1362: Fix tests DateUtilsTest for Java 9 with en_GB locale
Add changes.xml entry.
2017-11-04 16:49:59 +01:00
Gary Gregory 374c0fc1ac Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-lang.git 2017-11-04 08:42:02 -06:00
Stephen Colebourne fc409b5791 Fix DateUtilsTest to work reliably on Java 9. This closes #304. 2017-11-04 08:41:28 -06:00
pascalschumacher f746c508d1 [LANG-1365] Fix NullPointerException in isJavaVersionAtLeast on Java 10, add SystemUtils.IS_JAVA_10, add JavaVersion.JAVA_10.
Fix check-style violations.
2017-11-04 14:05:48 +01:00
Gary Gregory 63f6be088d Sort entries by type. 2017-11-03 11:38:09 -06:00
Gary Gregory a618b844c5 [LANG-1365] Fix NullPointerException in isJavaVersionAtLeast on Java 10,
add SystemUtils.IS_JAVA_10, add JavaVersion.JAVA_10.
2017-11-03 11:33:34 -06:00
Gary Gregory a26c66a8ed Pft! Fix typo. 2017-11-03 11:14:26 -06:00
pascalschumacher 758228f691 EventCountCircuitBreakerTest#testNow: improve assertion failure message
(side-effects: close #298, close #297, close #279, close #184, close #75)
2017-10-27 14:57:41 +02:00
Michael Vitz 7a3ca8598d doc: remove escape SQL references from javadoc (closes #303) 2017-10-26 18:55:56 +02:00
pascalschumacher c1ffdbab58 fix checkstyle violations 2017-10-25 08:21:42 +02:00
Gary Gregory 0e20d15820 [LANG-1361] ExceptionUtils.getThrowableList() is using deprecated
ExceptionUtils.getCause()
2017-10-23 12:12:54 -06:00
Gary Gregory 7aad594820 [LANG-1361] ExceptionUtils.getThrowableList() is using deprecated
ExceptionUtils.getCause()
2017-10-23 12:06:32 -06:00
Gary Gregory 96a1a31d73 [LANG-1360] Add methods to ClassUtils to get various forms of class
names in a null-safe manner.
2017-10-23 11:37:18 -06:00
Gary Gregory 6f03c0ce11 [LANG-1360] Add methods to ClassUtils to get various forms of class
names in a null-safe manner
2017-10-23 11:14:43 -06:00
Gary Gregory 8e8e78d849 [LANG-1360] Add methods to ClassUtils to get various forms of class
names in a null-safe manner
2017-10-23 10:56:09 -06:00
Gary Gregory 125cfb4cab Comment empty blocks. 2017-10-23 10:44:48 -06:00
Gary Gregory 0d95c55040 Comment empty blocks. 2017-10-23 10:40:57 -06:00
Gary Gregory b52c69b1b0 Sort members. 2017-10-23 10:40:17 -06:00
Gary Gregory 6ce88517b3 Sort members. 2017-10-23 10:35:43 -06:00
Benedikt Ritter 4eb1d6a44f
Merge branch 'EventUtilsTest' 2017-10-22 11:08:18 +02:00
Allon Mureinik 95fce758b0 EventUtilsTest ExpectedException usage
Use the ExpectedException @Rule to verify thrown exception instead of
boiler-plate implementing its logic, in order to clean up the code
and make it easier to read and maintain.
2017-10-21 22:01:49 +03:00
Benedikt Ritter 6276d0f844
Merge branch 'ObjectUtils' 2017-10-21 17:33:26 +02:00
Bruno P. Kinoshita be3638eb47 Fix javadoc typos 2017-10-22 01:12:41 +13:00
Allon Mureinik f0930aa151 Remove ObjectUtils' trailing white spaces
Commit 6ea2fc8 inadvertently introduced trailing white spaces in
ObjectUtils' code, thus breaking the Checkstyle validation.

This patch removes these redundant TWS in order to allow the build to
pass.
2017-10-21 14:39:25 +03:00
Gary Gregory 6ea2fc8d38 [LANG-1360] Add methods to ObjectUtils to get various forms of class
names in a null-safe manner
2017-10-20 13:19:56 -06:00
Gary Gregory 88654b79c9 Use final. 2017-10-20 13:02:26 -06:00
pascalschumacher 1f0dfc31b5 Always use static imports for assertion methods to be consistent with other tests classes. 2017-10-15 15:57:44 +02:00
pascalschumacher 729bcc46b5 use assertTrue and assertFalse 2017-10-15 11:00:04 +02:00
pascalschumacher ae924788d9 use assertNull where possible 2017-10-15 10:40:07 +02:00
pascalschumacher 66226ec1c2 remove unused bcel test dependency 2017-10-14 15:27:27 +02:00
pascalschumacher 2a8187fdf9 update easymock test dependency to version 3.5 2017-10-14 15:25:05 +02:00
pascalschumacher 0dc5b94a0d fix typos in comments 2017-10-12 20:38:14 +02:00
pascalschumacher 713c77ceda use StringBuilder#append(CharSequence, int, int) were possible to improve performance
(similar to LANG-1358, thanks to Stephane Landelle for the suggestion)
2017-10-12 19:53:14 +02:00
pascalschumacher 04ca0852b9 LANG-1358: Improve StringUtils#replace throughput
Add changes.xml entry
2017-10-12 19:35:15 +02:00
Stephane Landelle 5cb9883341 LANG-1358: Improve StringUtils#replace throughput (closes #300)
Motivation:

`StringUtils#replace` uses `substring` to append a String region into a
StringBuilder. This causes useless copies, as `StringBuilder#append`
can take start and end indexes.

Modification:

Use proper `StringBuilder#append` [overload](https://docs.oracle.com/javase/8/docs/api/java/lang/StringBuilder.html#append-java.lang.CharSequence-int-int-).

Result:

Based on benchmark from [JOOQ’s post](https://blog.jooq.org/2017/10/11/benchmarking-jdk-string-replace-vs-apache-commons-stringutils-replace):

Benchmark Mode Cnt Score Error Units
StringReplaceBenchmark.testFastStringReplaceLongStringOneMatch thrpt 21
7546534,219 ± 145523,962 ops/s
StringReplaceBenchmark.testStringUtilsReplaceLongStringOneMatch thrpt
21 7353512,552 ± 124498,228 ops/s

StringReplaceBenchmark.testFastStringReplaceLongStringSeveralMatches
thrpt 21 5077255,810 ± 62358,937 ops/s
StringReplaceBenchmark.testStringUtilsReplaceLongStringSeveralMatches
thrpt 21 4108357,612 ± 92909,038 ops/s

StringReplaceBenchmark.testFastStringReplaceShortStringOneMatch thrpt
21 15911221,949 ± 541064,693 ops/s
StringReplaceBenchmark.testStringUtilsReplaceShortStringOneMatch thrpt
21 10677897,475 ± 491091,973 ops/s

StringReplaceBenchmark.testFastStringReplaceShortStringSeveralMatches
thrpt 21 9271742,251 ± 220150,121 ops/s
StringReplaceBenchmark.testStringUtilsReplaceShortStringSeveralMatches
thrpt 21 6158829,188 ± 99637,607 ops/s
2017-10-12 19:31:25 +02:00
pascalschumacher 274dbfe81f pom.xml: remove jacoco configuration from reporting section, so that c56b87d6ef is completely reverted 2017-10-11 18:54:14 +02:00
Chas Honton 862a0d1ff5 revert change.xml note 2017-10-11 08:54:23 -07:00
Chas Honton 07f3694a5c revert LANG-1354; java7 has synthetic fields on Integer, jacoco does not yet work with java9 2017-10-11 08:50:01 -07:00
Chas Honton 0f32b292c2 remove checkstyle error 2017-10-11 08:15:21 -07:00
Chas Honton e7b3e1d20f update travis to use jacoco coverage report 2017-10-11 08:03:59 -07:00
Chas Honton c56b87d6ef LANG-1354: FieldUtils should ignore any synthetic fields 2017-10-10 20:52:50 -07:00