Rob Tompkins
a1ac807dab
Update release date to RC build date
2018-08-15 08:21:45 -04:00
Rob Tompkins
14e7f8db27
Preparing 3.8
2018-08-14 22:08:20 -04:00
Rob Tompkins
4f4e2b064e
LANG-1408: add final to method params
2018-08-14 15:53:09 -04:00
Rob Tompkins
b31877a460
LANG-1408: Rounding utilities for converting to BigDecimal
2018-08-14 15:48:19 -04:00
Rob Tompkins
08aa21f921
LANG-1408: add toDouble(BigDecimal), toDouble(BigDecimal, double)
2018-08-14 10:44:30 -04:00
Rob Tompkins
1deca6672d
LANG-1402: thanks Mark
2018-08-09 15:53:50 -04:00
Rob Tompkins
0bca64d75e
Merge branch 'LANG-1402' of https://github.com/MarkDacek/commons-lang
2018-08-09 15:15:38 -04:00
MarkDacek
3dbc944812
clarified Javadoc
2018-08-08 21:47:43 -04:00
Gary Gregory
a36c903d4f
[LANG-1405] Remove checks for java versions below the minimum supported
...
one. Closes #338 .
2018-07-27 17:20:48 -06:00
pascalschumacher
2cc5243808
LANG-1401: Typo in JavaDoc for lastIndexOf
...
Add changes.xml entry (actual fix was done in 69a8ef3189
)
2018-07-27 19:38:57 +02:00
pascalschumacher
0db3d81c93
Do not link to deprecated commons-text classes.
2018-07-26 23:31:40 +02:00
Gary Gregory
fa66bd94e0
Prepare for release 3.8.
2018-07-16 07:58:27 -06:00
Gary Gregory
3a3cec01d5
Prepare for release 3.8.
2018-07-16 07:54:20 -06:00
Gary Gregory
0020780ddd
Prepare for release 3.8.
2018-07-15 23:00:39 -06:00
MarkDacek
2cad60b6c2
removed ArrayUtils.get
2018-07-14 15:42:14 -04:00
Sebb
1cec9a6fe5
Raw Types
2018-07-13 15:05:35 +01:00
MarkDacek
ec2ec77492
LANG-1402: more comment proofreading
2018-07-08 19:35:13 -04:00
MarkDacek
96f3ab8410
LANG-1402: comment proofread
2018-07-08 19:20:48 -04:00
MarkDacek
7721302ae5
LANG-1402: refactored to return default value on negative index
2018-07-08 19:11:19 -04:00
MarkDacek
625fbccaa9
LANG-1402: Fixed comment
2018-07-08 19:06:48 -04:00
MarkDacek
2521d9619f
refactored to Generics and added isArrayIndexValid
2018-07-08 16:15:54 -04:00
MarkDacek
9379d0d36a
LANG-1402: added get methods to ArrayUtils
2018-07-07 13:04:19 -04:00
Chas Honton
f56931c176
LANG-1380: FastDateParser too strict on abbreviated short month symbols
2018-07-02 20:39:24 -07:00
Igor Curdvanovschi
ae6a24dd43
replaces primitive comparison with x.compare() where x is a wrapper class of the primitive
2018-06-25 22:26:08 +02:00
Igor Curdvanovschi
4aa4291ffc
removes redundant '+' sign
2018-06-25 22:05:44 +02:00
Igor Curdvanovschi
77febcfa8d
flips the order of conditional expressions and 'if' statements whose conditions were negated
2018-06-25 21:21:02 +02:00
Igor Curdvanovschi
b610707cd0
removes unnecessary class reference of static method calls which are declared in the same class
2018-06-20 14:28:10 +03:00
Igor Curdvanovschi
214cc7fd59
replaces 'size() == 0' and 'length() == 0' with 'isEmpty()'
2018-06-20 13:05:02 +03:00
Igor Curdvanovschi
96260205dc
deletes redundant 'new' expression in constant array creation
2018-06-20 12:44:10 +03:00
Igor Curdvanovschi
e767af7e7e
removes unchecked exceptions declared in 'throws' clause
2018-06-20 09:03:40 +03:00
Gary Gregory
8e8b8e05e4
The the patrol.
2018-06-16 15:46:28 -06:00
pascalschumacher
d9f1b897a2
Fraction#getFraction: Replace "the the" with "the" in javadoc
2018-06-16 23:12:03 +02:00
pascalschumacher
89cd538eaf
LANG-1392: Methods for getting first non empty or non blank value
...
Improve javadoc
2018-06-08 19:34:32 +02:00
pascalschumacher
672cd146f2
LANG-1392: add changes.xml entry
2018-06-08 18:12:51 +02:00
Jeff Nelson
152e5d48ea
LANG-1392: Methods for getting first non empty or non blank value ( closes #325 )
2018-06-08 18:10:23 +02:00
amseager
9ea0063bc9
(doc) Fix typos in classes of tuple package
2018-06-08 15:12:46 +03:00
pascalschumacher
6850d88880
Fix javadoc errors reported by Java 11.
2018-05-28 10:55:30 +02:00
pascalschumacher
b933f55e58
StringUtils: fix checkstyle violation
2018-05-27 22:17:47 +02:00
Gary Gregory
ae7bef343f
[LANG-1238] Fix typo.
2018-05-22 10:30:29 -06:00
Gary Gregory
2bb197d3d4
[LANG-1290] StringUtils.join() with support for List<?> with
...
configurable start/end indices. Fix XML.
2018-05-22 10:27:24 -06:00
Gary Gregory
81ee0d062c
Extract method.
2018-05-22 09:00:55 -06:00
Gary Gregory
f4a262df52
[LANG-1290] StringUtils.join() with support for List<?> with
...
configurable start/end indices. Extract constant.
2018-05-22 08:57:50 -06:00
Gary Gregory
96cb498f9b
[LANG-1290] StringUtils.join() with support for List<?> with
...
configurable start/end indices. Reuse constant.
2018-05-22 08:55:54 -06:00
Gary Gregory
a5391bb34c
Format nit.
2018-05-22 08:46:07 -06:00
Gary Gregory
9de7e1a1b4
[LANG-1290] StringUtils.join() with support for List<?> with
...
configurable start/end indices.
2018-05-22 08:41:35 -06:00
Jochen Schalanda
87937b2e71
[LANG-1290] StringUtils.join() with support for List<?> with
...
configurable start/end indices.
2018-05-22 08:40:55 -06:00
Takanobu Asanuma
09ef69c5b5
[LANG-1397] WordUtils.wrap throws StringIndexOutOfBoundsException when
...
wrapLength is Integer.MAX_VALUE.
2018-05-18 11:44:37 -06:00
Gary Gregory
bd4066eba8
[LANG-1238] Add RegexUtils class instead of overloadinh methods in
...
StringUtils that take a regex to take precompiled Pattern. Use 120 chars
per line.
2018-05-17 17:18:45 -06:00
Gary Gregory
54acb6e10f
[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:16:08 -06:00
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
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
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
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
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
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
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
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
Dmitry Ovchinnikov
d8ec011d77
LANG-1371: Fix TypeUtils.parameterize to work correctly with narrower-typed varargs array ( closes #307 )
2017-12-20 17:18:08 +01:00
nbarban
bfb43d3fe2
StringUtils#getDigits : Fix a small mistake in javadoc description. ( closes #310 )
2017-12-20 16:58:07 +01:00
Bruno P. Kinoshita
dd2394323b
LANG-1370: Add changes.xml entry
2017-11-25 21:38:17 +13:00
Andre Dieb Martins
7d061e33e5
LANG-1370 Fix EventCountCircuitBreaker increment batch
...
Fixes #incrementAndCheckState(Integer increment) by passing the increment downstream.
2017-11-25 21:32:52 +13:00
Gary Gregory
6049e77fdc
Fix Javadoc typos.
2017-11-15 21:07:14 -07:00
Gary Gregory
f7cbda6751
Normalize private method names to camel-case.
2017-11-15 21:06:36 -07:00
Sebb
5aed9abe16
Fix up component id
...
mvn commons:download-page -Dcommons.release.version=3.7
-Dcommons.componentid=lang
2017-11-14 00:40:28 +00:00
Gary Gregory
e863dcb2e7
[LANG-1367] ObjectUtils.identityToString(Object) and friends should
...
allocate builders and buffers with a size
2017-11-10 12:25:39 -07:00
Gary Gregory
10122741ea
Break up testIdentityToStringStringBuilder into multiple test methods.
2017-11-10 11:54:14 -07:00
Gary Gregory
22c3047156
Break up testIdentityToStringStringBuilder into multiple test methods.
2017-11-10 11:47:35 -07:00
Gary Gregory
4f928504ea
Refactor magic char.
2017-11-10 11:31:33 -07:00
Gary Gregory
8dae1f2904
Better exception message.
2017-11-10 11:28:57 -07:00
Gary Gregory
6e48ce6cd6
Add missing release notes.
2017-11-08 10:50:51 -07:00
Gary Gregory
ea1e46dd06
Use the same license header for all files.
2017-11-08 10:50:17 -07:00
Gary Gregory
6fea9cd301
Use the same license header for all files.
2017-11-08 10:50:11 -07:00
Gary Gregory
1e5e649bbd
Updates for 3.7 site.
2017-11-08 10:03:16 -07:00
Gary Gregory
4025834872
Updates for 3.7 site.
2017-11-08 08:54:13 -07:00
Haoliang Quan
20de433aa2
Remove unnecessary testing comments ( closes #305 )
2017-11-07 20:49:42 +01:00
Gary Gregory
425d8085cf
Prepare for releasing 3.7.
2017-11-04 12:09:44 -06:00
Gary Gregory
77d75526cd
Prepare for releasing 3.7.
2017-11-04 11:57:43 -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
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
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