Commit Graph

4222 Commits

Author SHA1 Message Date
pascalschumacher ff4497aff8 LANG-1155: Add StringUtils#unwrap
add more examples and tests

fix formatting

add changes.xml entry
2016-10-31 20:03:40 +01:00
MSaifAsif d79e43216f LANG-1155: Add StringUtils#unwrap (closes #107, closes #136) 2016-10-31 20:02:38 +01:00
pascalschumacher a069c490e8 LANG-1143: StringUtils should use toXxxxCase(int) rather than toXxxxCase(char) (closes #201)
based on patch by Sebb
2016-10-31 13:29:36 +01:00
pascalschumacher 2dd459003e LANG-1279: Update Java requirement from Java 6 to 7
SystemUtilsTest: remove code run only on java 6
2016-10-28 22:14:46 +02:00
Bruno P. Kinoshita c37a911d3a LANG-1160: StringUtils#abbreviate should support 'custom ellipses' parameter (closes #195) 2016-10-28 19:33:47 +02:00
pascalschumacher a40b2a907a LANG-1269: Wrong name or result of StringUtils#getJaroWinklerDistance (closes #198)
deprecate StringUtils#getJaroWinklerDistance and add StringUtils#getJaroWinklerSimilarity instead
2016-10-28 19:19:22 +02:00
pascalschumacher 1e5c2b8779 fix typos in StrBuilder javadoc 2016-10-28 18:46:58 +02:00
pascalschumacher 1f73bbeb67 fix typos in Conversion javadoc 2016-10-28 18:46:37 +02:00
pascalschumacher 3f103f8c9b remove unnecessary @SuppressWarnings("unchecked") from ObjectUtilsTest#testMode 2016-10-28 18:40:01 +02:00
pascalschumacher 4733cb5b79 LANG-1279: Update Java requirement from Java 6 to 7
replace usage of deprecated ObjectUtils#hashCode with Objects#hashCode
2016-10-28 18:36:51 +02:00
pascalschumacher cfdc3f767c LANG-1279: Update Java requirement from Java 6 to 7
replace usage of deprecated ObjectUtils#equals with Objects#equals
2016-10-28 18:33:40 +02:00
pascalschumacher 9b481a9701 LANG-1279: Update Java requirement from Java 6 to 7
replace usage of deprecated ObjectUtils#toString with Objects#toString
2016-10-28 18:27:55 +02:00
pascalschumacher 61bc7f27b4 fix typo in ObjectUtils#toString javadoc 2016-10-28 18:18:09 +02:00
pascalschumacher eafeca4326 LANG-1144: Multiple calls of org.apache.commons.lang3.concurrent.LazyInitializer.initialize() are possible
use all uppercase name for constant
2016-10-25 00:40:48 +02:00
pascalschumacher 383bc8eefa LANG-1279: Update Java requirement from Java 6 to 7
use multi-catch in AnnotationUtils and ExceptionUtils
2016-10-23 22:40:07 +02:00
pascalschumacher f9cab271b3 LANG-1279: Update Java requirement from Java 6 to 7
use try with resources in SerializationUtils
2016-10-23 22:30:00 +02:00
pascalschumacher dc53e49b4a LANG-1144: Multiple calls of org.apache.commons.lang3.concurrent.LazyInitializer.initialize() are possible
minimal clean-up
2016-10-23 22:18:47 +02:00
pascalschumacher 96c8ea2fb3 add @SafeVarargs to some methods with vararg parameters to suppress "Type safety: Potential heap pollution via varargs parameter array" warnings 2016-10-23 22:09:43 +02:00
pascalschumacher d6644e4fbe LANG-1188: StringUtils#join(T...): warning: [unchecked] Possible heap pollution from parameterized vararg type T
fixed by adding @SafeVarargs
2016-10-23 21:59:11 +02:00
pascalschumacher 23108b1bd9 LANG-1279: Update Java requirement from Java 6 to 7
replace usage of deprecated ArrayUtils#isEquals with Objects#deepEquals
2016-10-23 20:25:45 +02:00
Gary Gregory 33884b2264 Add final modifier to local variables. 2016-10-23 10:59:32 -07:00
Gary Gregory 151f2cd3d8 Use try-with-resources. 2016-10-23 10:59:16 -07:00
Gary Gregory eb2b89efbe Add final modifier to local variables. 2016-10-23 10:55:56 -07:00
Gary Gregory aadb9a31ed Add final modifier to method parameters. 2016-10-23 10:55:14 -07:00
Gary Gregory 607e3447c9 Add final modifier to private fields. 2016-10-23 10:54:34 -07:00
Gary Gregory 4f82195afd Remove redundant type arguments. 2016-10-23 10:52:50 -07:00
Gary Gregory 7e8df326f4 [LANG-1279] Update Java requirement from Java 6 to 7. 2016-10-23 10:48:40 -07:00
Gary Gregory 32ccabe3ba Order entries by type. 2016-10-23 10:46:20 -07:00
Gary Gregory 8c5335e6c6 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-lang 2016-10-23 10:36:27 -07:00
Gary Gregory e4c72a5522 [LANG-1144]
Multiple calls of
org.apache.commons.lang3.concurrent.LazyInitializer.initialize() are
possible.
2016-10-23 10:33:29 -07:00
pascalschumacher a945ecbbdd StringUtils#replacePattern: fix source code formatting 2016-10-23 19:30:38 +02:00
pascalschumacher 65ed41ff7a LANG-1276: add changes.xml entry 2016-10-23 17:03:51 +02:00
Andy Klimczak 10325422e5 LANG-1276: StrBuilder#replaceAll ArrayIndexOutOfBoundsException (closes #200)
Avoid ArrayIndexOutOfBoundsException by keeping variable buf consistent with buffer in StrBuilder#replaceImpl.
2016-10-23 17:01:43 +02:00
pascalschumacher e2dbe55d56 MethodUtils#invokeMethod(Object object, boolean forceAccess, String methodName, Object[] args, Class<?>[] parameterTypes): do not restore the accessibility of the method object, because Method#setAccessible only modifies the behavior of the AccessibleObject not of the actual method. 2016-10-22 16:49:12 +02:00
pascalschumacher 8274993e29 LANG-1216: NumberUtils#isNumber, NumberUtils#isCreateable should return true for "0.1"
add a test
2016-10-22 14:29:09 +02:00
pascalschumacher 8f9271399a fix typo in NumberUtils#isCreatable and NumberUtils#isNumber javadoc 2016-10-22 14:28:44 +02:00
pascalschumacher 91d6bd74fa LANG-1278: BooleanUtils javadoc issues 2016-10-21 21:07:10 +02:00
pascalschumacher 6423a76655 LANG-1277: StringUtils#getLevenshteinDistance reduce memory consumption
minimal clean-up

add changes.xml entry
2016-10-20 21:52:09 +02:00
yufcuy 103b64a373 LANG-1277: StringUtils#getLevenshteinDistance reduce memory consumption (closes #189) 2016-10-20 21:51:29 +02:00
pascalschumacher 3433a94e25 LANG-1271: correct type in changes.xml 2016-10-20 20:54:26 +02:00
pascalschumacher 4a32861c32 LANG-1070: ArrayUtils#add confusing example in javadoc 2016-10-20 20:48:42 +02:00
pascalschumacher 3b12d4fe5d LANG-1271, LANG-1270: add changes.xml entries 2016-10-19 18:54:27 +02:00
Pierre Templier 38140a5d8d LANG-1271: StringUtils#isAnyEmpty and #isAnyBlank should return false for an empty array (closes #193) 2016-10-19 18:54:14 +02:00
Pierre Templier 5acf310d08 LANG-1270: Add StringUtils#isAnyNotEmpty and #isAnyNotBlank (closes #193) 2016-10-19 18:53:35 +02:00
Benedikt Ritter 8592cfe496
Add section for next release to changes.xml 2016-10-19 09:36:41 +02:00
Rob Tompkins 9ca3e3e6c4 site: Nav, javadoc now says GIT latest as opposed to SVN latest 2016-10-17 10:30:58 -04:00
Benedikt Ritter 7316c8218d
Correct release date of 3.5 release in changes.xml 2016-10-17 11:20:44 +02:00
Benedikt Ritter 6d8b649451
Set release date to todays date 2016-10-13 21:01:06 +02:00
Benedikt Ritter c5eb2bf5d3
Update documentation for release 3.5 2016-10-13 20:52:15 +02:00
Benedikt Ritter 16b1178764
Updated download page in preparation for 3.5 release. 2016-10-13 20:50:58 +02:00
oheger 78134f6b3f [LANG-1275] Updated changes.xml. 2016-10-10 22:19:59 +02:00
oheger 809e2bed22 [LANG-1275] Added a tryAcquire() method to TimedSemaphore.
This method supports non-blocking use cases.
2016-10-08 16:47:10 +02:00
pascalschumacher 496506dedd changes.xml: add meaningful description for LANG-1200 2016-10-02 18:23:42 +02:00
pascalschumacher 756b910603 changes.xml: correct entry type of LANG-1133
(side-effect: close #39)
2016-10-02 17:58:54 +02:00
Benedikt Ritter 9177ddde8e
Add LANG-1273 to changes.xml 2016-10-02 14:28:28 +02:00
Benedikt Ritter 33bb9fe25b
Merge branch 'LANG-1255' 2016-10-02 12:28:09 +02:00
Benedikt Ritter 9209e235a5
Add LANG-1255 to changes.xml 2016-10-02 12:26:19 +02:00
Stian Soiland-Reyes 86a59601b5 Ensure UTF-8 file encoding 2016-09-27 10:19:32 +01:00
pascalschumacher a041518197 CharEncoding: fix dead link in class javadoc 2016-09-25 21:00:46 +02:00
pascalschumacher b10d58ece8 CharEncoding#isSupported fix dead link in javadoc 2016-09-25 21:00:46 +02:00
pascalschumacher c6a410adf8 NumberUtilsTest#testLANG1252 fix spelling in comment 2016-09-25 21:00:46 +02:00
pascalschumacher 8232c096ce SystemUtilsTest: remove code run only on java 1.5 and below 2016-09-25 21:00:46 +02:00
Benedikt Ritter 5f4249e2ec
Add test for SystemUtils.isJavaVersionAtLeast to make sure it works with Java 9 EA 2016-09-25 20:25:57 +02:00
pascalschumacher 10d2363fcd CharEncodingTest: remove tests for java versions below 1.3.1 2016-09-25 20:21:01 +02:00
Kaiyuan Wang 8ac857c41e Handle Comments 2016-09-25 13:13:03 -05:00
Benedikt Ritter d0f6be9886
Fix test for IS_JAVA_XX constants.
The test would never check anything, since it tested against the
java.specification.name property, which has the value "Java Platform API
Specification"
2016-09-25 19:52:50 +02:00
Benedikt Ritter 8f362e7eab
Add LANG-1248 to changes.xml 2016-09-25 19:20:14 +02:00
Benedikt Ritter a3b74d9c23
Merge branch 'LANG-1023' 2016-09-25 19:19:08 +02:00
Benedikt Ritter 2b36e25f66
Add LANG-1023 to changes.xml 2016-09-25 19:11:21 +02:00
Kaiyuan Wang d9a2c69a9d Handle Benedikt Ritter's comments 2016-09-24 10:01:41 -05:00
Benedikt Ritter cac7a60abf
Merge branch 'LANG-787' 2016-09-24 12:19:35 +02:00
Benedikt Ritter a27c02f809
Add LANG-787 to changes.xml 2016-09-24 12:18:40 +02:00
Kaiyuan Wang ac5a216f76 Add unit tests for DateUtils.toCalendar(Date, TimeZone) 2016-09-20 23:59:04 -05:00
Kaiyuan Wang 1eecfc948b Add DateUtils.toCalendar(Date, TimeZone) 2016-09-20 23:58:36 -05:00
marko-bekhta 8c99b8299d LANG-1023
WordUtils.wrap: Customizable breakable characters (not just space/whitespace)

updated JavaDoc
2016-09-20 19:47:20 +02:00
marko-bekhta 78c373d7bc LANG-1023
WordUtils.wrap: Customizable breakable characters (not just space/whitespace)

updated JavaDoc
2016-09-20 19:46:50 +02:00
Benedikt Ritter db6f7c1d74
PMD: These nested if statements could be combined 2016-09-20 18:01:10 +02:00
Benedikt Ritter 31d02f6806
Correct JavaDoc @param tags 2016-09-20 17:55:42 +02:00
Benedikt Ritter 9c5b6cdc71
PMD: Remove useless parentheses 2016-09-19 13:56:11 +02:00
Benedikt Ritter 3421e6adb4
Remove unused private fields 2016-09-19 13:46:41 +02:00
Benedikt Ritter d962a2b31c
Checkstyle: Convert tabs to spaces 2016-09-19 13:40:46 +02:00
Benedikt Ritter d58d64ddb1
Checkstyle: Add missing curly braces 2016-09-19 13:39:49 +02:00
Benedikt Ritter e6ad17215d
Add dependency tags to make it easier to copy past the dependency definition 2016-09-19 13:31:19 +02:00
Benedikt Ritter 0807eedad6
Make JavaDoc lint happy 2016-09-19 13:21:06 +02:00
Benedikt Ritter 09686fad46
Revert parts of LANG-1134 to polish the API after 3.5 2016-09-19 11:46:19 +02:00
Benedikt Ritter 64d820bffa
Gather issue related tests at the bottom 2016-09-19 10:46:52 +02:00
Benedikt Ritter bdb074610c
LANG-1267: Add test showing that XXX does work when specifing formats 2016-09-19 10:45:58 +02:00
Benedikt Ritter ff2672a578
Remove trailing white spaces 2016-09-19 09:03:10 +02:00
Sebb feb7ba5512 Replace deprecated method call 2016-09-18 22:16:20 +01:00
Sebb d529375167 Unused imports 2016-09-18 22:12:37 +01:00
Benedikt Ritter 42f2058c83 Add LANG-1261 to changes.xml 2016-09-18 18:01:43 +02:00
Benedikt Ritter 556d0fe10f Add LANG-1261 to changes.xml 2016-09-18 18:01:02 +02:00
Benedikt Ritter 72bbbbc559 Remove unused constructor parameter 2016-09-17 18:17:11 +02:00
Benedikt Ritter 8eace0187e Simplify boolean expression 2016-09-17 17:47:54 +02:00
Benedikt Ritter 49e8d539fb Add description for release 3.5 2016-09-17 16:36:42 +02:00
Benedikt Ritter ad1b72b7ec Merge branch 'LANG-1197' 2016-09-17 16:35:23 +02:00
Benedikt Ritter 69da8cece0 Add LANG-1197 to changes.xml 2016-09-17 16:33:08 +02:00
pascalschumacher b9f04d9be3 LANG-1197: Prepare Java 9 detection 2016-09-15 19:27:53 +02:00
Lady-Stardust 9c50627918 LANG-1134: New methods for lang3.Validate (closes #190)
Fixed method names; fixed differentObject to use Object.equals
2016-09-15 18:29:03 +02:00
Rob Tompkins dad86bc0a2 Merge branch 'master' of github.com:apache/commons-lang into LANG-1252 2016-09-11 13:01:59 -04:00
Rob Tompkins e64b51c70f LANG-1252: adding @since and notes to changes.xml 2016-09-11 13:00:53 -04:00
Benedikt Ritter 05a6beba76 Sort JavaDoc tags 2016-09-11 17:17:16 +02:00
Benedikt Ritter be21e8fc35 Sort JavaDoc tags 2016-09-11 17:10:38 +02:00
Benedikt Ritter ae91ab56ac Better JavaDoc formatting for fields in DateFormatUtils 2016-09-11 17:08:42 +02:00
Rob Tompkins 204ed0048f LANG-1252: adding more isNumber Tests before full deletion of method 2016-09-11 11:02:01 -04:00
Benedikt Ritter 4ff5974c4a Add missing @since tag to WordUtils.containsAllWords 2016-09-11 16:55:24 +02:00
Rob Tompkins b3c31a379e LANG-1252: replacing system call for java 1.6 to SystemUtils.IS_JAVA_1_6 2016-09-11 10:54:59 -04:00
Rob Tompkins a266068798 LANG-1252: adding test for deprecated isNumber 2016-09-11 10:51:29 -04:00
Benedikt Ritter ecf6de89ba Add missing @since tags to StrSubstitutor 2016-09-11 16:07:25 +02:00
Benedikt Ritter ab60f735c7 Fix whitespaces, add missing @since tag 2016-09-11 16:06:32 +02:00
Benedikt Ritter d0049e1ac3 Add missing @since tags in the mutable package 2016-09-11 16:02:01 +02:00
Benedikt Ritter d772e171d6 Sort JavaDoc tags 2016-09-11 15:55:40 +02:00
Benedikt Ritter 291eaf16bf Add missing @since tag to new method in EventListenerSupport 2016-09-11 15:53:59 +02:00
Benedikt Ritter a81791c093 Add missing @since tags to new annotations in the builder package 2016-09-11 15:51:50 +02:00
Benedikt Ritter 4388ded2d1 Revert "[LANG-1201] Add a TimeUnit-like classes for base 2 and base 10 digital"
This reverts commit a1cde6ab70.
2016-09-11 15:47:33 +02:00
Benedikt Ritter de125de49a Add missing @since tags for new StringUtils methods 2016-09-11 15:33:01 +02:00
Benedikt Ritter d4fe06de87 Add missing @sicne tag for RandomUtils.nextBoolean() 2016-09-11 15:31:26 +02:00
Benedikt Ritter 9e2bcbf520 Better JavaDoc for ObjectUtils.anyNotNull and ObjectUtils.allNotNull 2016-09-11 15:25:43 +02:00
Benedikt Ritter 0bdeb204c8 Better JavaDoc for ArrayUtils.shift variants 2016-09-11 15:22:14 +02:00
Benedikt Ritter ff8fd9578e Correct indent of method declaration 2016-09-11 15:14:24 +02:00
Benedikt Ritter cf6b6d8eb1 Better JavaDoc for ArrayUtils.swap variants 2016-09-11 15:13:18 +02:00
Benedikt Ritter 5b5b374de3 Add and correct @since tag for swap and shift methods introduced in 3.5 2016-09-11 15:01:03 +02:00
Benedikt Ritter ee6f3fa7a6 Better JavaDoc for removeAllOccurences variants 2016-09-11 14:53:32 +02:00
Benedikt Ritter 5ceb5f5721 Remove trailing whitespaces 2016-09-11 14:49:45 +02:00
Benedikt Ritter f83e93685b Revert "[LANG-1227] Add XMLCharacter class."
This reverts commit dd5a0e6e1e.
2016-09-11 14:39:14 +02:00
Benedikt Ritter 716f140d46 Correct issue number for LANG-1120 in changes.xml 2016-09-11 14:35:35 +02:00
Benedikt Ritter 8d682a6aa3 Revert "[LANG-1201] Add a TimeUnit-like classes for base 2 and base 10 digital"
This reverts commit 04e52eb615.
2016-09-11 14:28:25 +02:00
Benedikt Ritter 0b11c60434 The behavior for empty arrays is documented in the @return JavaDoc
tag of the method documentation.
2016-09-11 14:06:04 +02:00
Rob Tompkins 71d9e00d42 LANG-1252: Few more checkstyle warnings: whitespace, line length 2016-09-10 21:43:19 -04:00
Rob Tompkins a2d41db55a LANG-1252: Cleaning up checkstyle warnings: whitespace, line length 2016-09-10 21:41:33 -04:00
Rob Tompkins 0a0a35f54f LANG-1252: updates to package-info, adding name to pom.xml 2016-09-10 21:07:42 -04:00
Rob Tompkins c503d742f0 LANG-1252: better naming and java 6 specifics around handling a leading + 2016-09-10 21:01:08 -04:00
Sungju Kwon 2d61e349db Fix ReflectionToStringBuilder toString javadoc
- as is
     * @param outputStatics
     *            whether to include transient fields
- to be
     * @param outputStatics
     *            whether to include static fields
2016-09-07 14:26:18 +09:00
pascalschumacher 1f56bd103d LANG-1261: ArrayUtils#contains and ArrayUtils#indexOf should compare objects with different types 2016-08-30 22:00:37 +02:00
pascalschumacher c7c85ee398 LANG-1262: CompareToBuilder.append(Object, Object, Comparator) method is too big to be inlined
Extracted arrays processing into a separate method.
2016-08-30 21:53:54 +02:00
pascalschumacher f30c4607a2 add changes.xml entry for LANG-1230 2016-08-21 19:18:11 +02:00
Philippe Marschall b2c1afce7e LANG-1230: Remove unnecessary synchronization from registry lookup in EqualsBuilder and HashCodeBuilder (closes #143) 2016-08-21 19:14:28 +02:00
pascalschumacher a06c99b9c0 LANG-1224: Extend RandomStringUtils with methods that generate strings between a min and max length
add missing since javadoc tags
2016-08-21 15:50:31 +02:00
Caleb Cushing ec2fa6bd56 LANG-1224: Extend RandomStringUtils with methods that generate strings between a min and max length (closes #101, closes #157) 2016-08-21 14:01:04 +02:00
pascalschumacher 1169aac7a1 LANG-1214: add changes.xml entry 2016-08-21 13:18:03 +02:00
Henry Tung fbb5d31a58 LANG-1214: Handle "void" in ClassUtils.getClass() (closes #155)
getClass() previously deferred to an array type to get the class,
but this fails for void, which lacks an array type.
Instead, map explicitly from primitive name to primitive class.
2016-08-21 13:16:11 +02:00
pascalschumacher e05b50e1da LANG-1250: add changes.xml entry
(side-effects: close #177, close #178)
2016-08-20 13:40:42 +02:00
Glease e4b7ee81c1 LANG-1250: SerializationUtils::deserialize has unnecessary code and a comment for that (closes #174)
There is no real CCE possible, even the javadoc say so. Github's blame showed the code and javadoc is written by two indiviual person in two different years, so that may be the cause.
2016-08-20 13:35:55 +02:00
Benedikt Ritter 4a26a86d0c LANG-1259: JavaDoc for ArrayUtils.isNotEmpty() is slightly misleading. Thanks to Dominik Stadler. 2016-08-19 09:49:51 +02:00
Gary Gregory eaa9269ac8 [LANG-1257] StringUtils.wrapIfMissing(String, char|String) 2016-08-16 08:22:32 -07:00
Gary Gregory 648eebba22 Format nit. 2016-08-11 18:12:39 -07:00
pascalschumacher 13cd4e0ac3 LANG-1190: TypeUtils.isAssignable throws NullPointerException when fromType has type variables and toType generic superclass specifies type variable (closes #158) 2016-07-31 20:02:38 +02:00
pascalschumacher 7e85d1cf54 LANG-1226: StringUtils#normalizeSpace does not trim the string anymore (closes #150) 2016-07-31 19:57:50 +02:00
pascalschumacher ed14537b80 LANG-1251: SerializationUtils.ClassLoaderAwareObjectInputStream should use static initializer to initialize primitiveTypes map
add changes.xml entry
2016-07-31 19:49:16 +02:00
Takuya UESHIN aa31bc6c31 LANG-1251: SerializationUtils.ClassLoaderAwareObjectInputStream should use static initializer to initialize primitiveTypes map (closes #180)
Modify to use static initializer to initialize primitiveTypes map.
2016-07-31 19:48:53 +02:00
pascalschumacher 0223a4d4cd reorganize test classes for StringUtils to make it clearer were tests for a method are located 2016-07-31 19:20:54 +02:00
pascalschumacher 009e33bb5d delete StringUtilsTest#testIsEmpty, #testIsNotEmpty, #testIsBlank and #testIsNotBlank, because these tests are redundant with StringUtilsTrimEmptyTest#testIsEmpty, #testIsNotEmpty, #testIsBlank and #testIsNotBlank (closes #175, closes #176) 2016-07-31 18:50:48 +02:00
Gary Gregory 1a1fc65b04 [LANG-1253][GitHub issue #170] Add RandomUtils#nextBoolean() method.
Closes #170.
2016-07-28 22:44:10 -07:00
Gary Gregory 697329630f Merge branch 'master' of
https://git-wip-us.apache.org/repos/asf/commons-lang.git

Conflicts:
	src/changes/changes.xml
2016-07-28 22:43:48 -07:00
Gary Gregory 3899cc6570 [LANG-1253][GitHub issue #170] Add RandomUtils#nextBoolean() method.
Closes #170.
2016-07-28 22:41:40 -07:00
marko-bekhta 0fe9685c8a LANG-1023
WordUtils.wrap: Customizable breakable characters (not just space/whitespace)

changed wrap method to use regex pattern to find breakable characters rather than only spaces. added a few basic tests for "regex wrap"
2016-07-27 06:21:32 +02:00
Chas Honton bd9adbb637 LANG-1248: FastDatePrinter Memory allocation regression
closes #169
2016-07-16 19:27:37 -07:00
ggregory 1d1883f0e2 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-lang.git 2016-07-06 14:11:13 -07:00
ggregory 5b98a73e4d @inheritDoc does not work in @see. 2016-07-06 14:10:44 -07:00
Sebb ce0c082898 Avoid deprecation message by inlining the deprecated method code body 2016-07-05 21:55:48 +01:00
Chas Honton caaf97ed88 LANG-1247: FastDatePrinter generates Date objects wastefully
closes #168
2016-07-05 13:42:55 -07:00
Lorenzo Bragaglia d83f5248a6 Fix typo in toMap javadoc 2016-06-24 12:23:32 +02:00
uvegla 8d3f3b60fa Fix typo in documentation of Range#isEndedBy (closes #166) 2016-06-16 22:58:00 +02:00
Chas Honton 10ebb32ce1 LANG-1245: resurrect applyRules(java.util.Calendar, java.lang.StringBuffer) for binary compatibility 2016-06-14 21:05:53 -07:00
Chas Honton 6f318c10aa update javadoc for DateParser and DatePrinter 2016-06-13 21:17:26 -07:00
pascalschumacher d2fb3b0865 LANG-1018: add changes.xml entry
add test for LANG-1187: Method createNumber from NumberUtils doesn't work for floating point numbers other than Float (fixed by LANG-1018)

add test for LANG-1215: NumberUtils.createNumber() method lost precision sometimes (fixed by LANG-1018)

side-effects: close #9, close #7, close #93
2016-06-12 13:25:42 +02:00
Nick Manley 8d6bc0ca62 LANG-1018: Fix precision loss on NumberUtils.createNumber(String) (closes #156) 2016-06-12 13:23:55 +02:00
Sebb 7fd021d82f LANG-1241 StringUtils.ordinalIndexOf broken
Show that the method is no longer broken, now that LANG-1077 has been
reverted
2016-06-10 11:53:24 +01:00
pascalschumacher f08c4f6ae9 LANG-1229: add changes.xml entry 2016-06-08 22:28:19 +02:00
Philippe Marschall 18b1bc203b LANG-1229: HashCodeBuilder.append(Object,Object) is too big to be inlined, which prevents whole builder to be scalarized (closes #142) 2016-06-08 22:27:58 +02:00
pascalschumacher 9bd439b4e0 LANG-1229: Performance regression due to cyclic hashCode guard
To fix this issues revert the unreleased "LANG-456: HashCodeBuilder throws StackOverflowError in bidirectional navigable".

This reverts commit b5749b4f54.
2016-06-08 22:21:41 +02:00
pascalschumacher 528f6e8e70 LANG-1085: Add a circuit breaker implementation
add since javadoc tags

fix javadoc warning
2016-06-08 22:15:13 +02:00
August Shi c049aeeffd Fixing testTSVEmpty to use getTSVInstance instead of getCSVInstance (closes #164) 2016-06-08 07:36:36 +02:00
pascalschumacher de88730f4b LANG-1085: add changes.xml entry 2016-06-07 22:22:40 +02:00
oheger 89eea1e72b LANG-1085: Add a circuit breaker implementation (closes #95)
Squashed commit of the following:

commit 1b12db706b457408562a166c21bc6470a8064620
Merge: edebd97 def7832
Author: Oliver Heger <oliver.heger@oliver-heger.de>
Date:   Wed Jun 10 21:27:17 2015 +0200

    Merge pull request #1 from kinow/patch1

    This commit:

commit def78320c5efcb734572c5b48623a952e3c94c75
Author: Bruno P. Kinoshita <brunodepaulak@yahoo.com.br>
Date:   Wed Jun 10 22:57:33 2015 +1200

    This commit:

    * fixes JavaDocs warnings in Checkstyle
    * adds license headers
    * renames the MemoryCircuitBreaker to ThresholdCircuitBreaker
    * adds more tests to have a good coverage

commit edebd970582ce2984258352c8482bcb51587f7d2
Author: oheger <oliver.heger@oliver-heger.de>
Date:   Tue Jun 9 22:11:11 2015 +0200

    Documentation updates for EventCountCircuitBreaker.

commit 3d8a4ff85a78173dd8f5437d9b4d931069128e20
Author: oheger <oliver.heger@oliver-heger.de>
Date:   Tue Jun 9 21:55:02 2015 +0200

    Renamed TimedCircuitBreaker to EventCountCircuitBreaker.

    This name seems to be more appropriate as the main property of this circuit
    breaker implementation is that it counts specific events and changes its state
    when a certain threshold is reached.

commit 0e4ce5a984ef699ddace61bbf430d695b011c6b5
Author: oheger <oliver.heger@oliver-heger.de>
Date:   Tue Jun 9 21:51:22 2015 +0200

    Added documentation for CircuitBreaker interface.

commit 0e6b22190ef1868655fec9b3814a2345ad206f76
Author: oheger <oliver.heger@oliver-heger.de>
Date:   Mon Jun 8 22:27:05 2015 +0200

    Initial import of CircuitBreaker classes.
2016-06-07 22:22:40 +02:00
ggregory 6c687c70a1 Remove unnecessary else. 2016-06-05 16:47:19 -07:00
pascalschumacher 6838ba3206 LANG-1013: add changes.xml entry 2016-06-05 21:25:41 +02:00
Thiago Andrade c6fac966ab LANG-1013: Add StringUtils.truncate() (closes #137) 2016-06-05 21:25:18 +02:00
pascalschumacher de0819cb86 LANG-1195: add changes.xml entry 2016-06-05 20:47:18 +02:00
Derek Ashmore 5fef957564 LANG-1195: Enhance MethodUtils to allow invocation of private methods (closes #141) 2016-06-05 20:42:52 +02:00
pascalschumacher 078e512e6c Add missing Apache license headers to ".travis.yml", "ReflectionToStringBuilderTest.java" and "NotVisibleExceptionFactory.java" files. 2016-06-05 19:50:27 +02:00
pascalschumacher c35a041022 LANG-1199: Fix implementation of StringUtils.getJaroWinklerDistance()
Replace current implementation with Jaro-Winkler distance implementation taken from Apache Lucene.
2016-06-05 17:39:12 +02:00
pascalschumacher 43a9bab8c0 Validate: fix javadoc warnings relate to see tags 2016-06-03 17:59:32 +02:00
pascalschumacher 3e3ac124f8 ArrayUtils#shift: remove duplicated param tag for offset in javadoc 2016-06-03 17:48:02 +02:00
pascalschumacher 03a2ab275b LANG-1244: Fix dead links in StringUtils.getLevenshteinDistance() javadoc 2016-06-03 17:42:46 +02:00
pascalschumacher 9010f2ec84 LANG-1189: Add getAndIncrement/getAndDecrement/getAndAdd/incrementAndGet/decrementAndGet/addAndGet in Mutable* classes
add since javadoc tags
2016-06-03 17:21:58 +02:00
Eric Wannemacher faeaa303b9 NumberUtils#withDecimalsParsing: Eliminate redundant calculation of isDecimalPoint. (closes #160) 2016-06-03 17:07:40 +02:00
pascalschumacher c979d63934 LANG-1242: add changes.xml entry 2016-06-02 22:15:22 +02:00
Neal Stewart 8ef8e2a7a5 LANG-1242: "\u2284":"&nsub;" mapping missing from EntityArrays#HTML40_EXTENDED_ESCAPE (closes #159)
Fix commented out nsub in EntityArray
2016-06-02 22:12:01 +02:00
Sebb 844b2901fe LANG-1243 Simplify ArrayUtils removeElements by using new
decrementAndGet() method
2016-06-02 12:02:08 +01:00
Sebb e474263669 LANG-1189 Add
getAndIncrement/getAndDecrement/getAndAdd/incrementAndGet/decrementAndGet/addAndGet
in Mutable* classes
2016-06-02 11:46:11 +01:00
pascalschumacher 17d6f2163d LANG-1240: add changes.xml entry 2016-05-30 22:23:33 +02:00
zhanhb 84d52919ec LANG-1240: Optimize BitField constructor implementation (closes #119) 2016-05-30 22:23:14 +02:00
pascalschumacher afedbae8ac LANG-1206: Improve CharSetUtils.squeeze() performance (closes #147)
patch by Mohammed Alfallaj
2016-05-29 17:05:23 +02:00
pascalschumacher f26f04dc6e LANG-1225: Add RandomStringUtils#randomGraph and #randomPrint which match corresponding regular expression class
improve javadoc

add changes.xml entry
2016-05-29 09:54:23 +02:00
Caleb Cushing 1a002c67f2 LANG-1225: Add RandomStringUtils#randomGraph and #randomPrint which match corresponding regular expression class
These are useful over randomAscii because they do not contain the DEL character but otherwise contain the full range of ASCII printing characters, and optionally include whitespace. This is useful for testing user defined inputs where characters like spaces, angle brakets, semicolons, dashes, etc. can cause issues.
2016-05-29 09:39:09 +02:00
Sebb 9625891a7b Avoid serialisation warning 2016-05-28 13:43:46 +01:00
Sebb 17e6548811 Fix compiler type warning 2016-05-28 13:42:32 +01:00
pascalschumacher 9bc992b133 LANG-901: StringUtils#startsWithAny/endsWithAny is case sensitive - documented as case insensitive (closes #149)
Improve the documentation and introduce more test cases that verify the documented behaviors.

Patch by Matthew Bartenschlag
2016-05-27 17:51:20 +02:00
pascalschumacher 2244ed9d63 LANG-1223: Add StopWatch#getTime(TimeUnit)
add since java doc tag and changes.xml entry
2016-05-27 17:13:03 +02:00
Nick Manley fd59e545f4 LANG-1223: Add StopWatch#getTime(TimeUnit) (closes #152) 2016-05-27 17:08:42 +02:00
pascalschumacher 5d2728f655 LANG-781: add javadoc examples and since tags; add changes.xml entry 2016-05-26 20:16:27 +02:00
Krzysztof Wolny d190655a97 LANG-781: Added methods to ObjectUtils class to check for null elements in the array (closes #108) 2016-05-26 19:35:58 +02:00
pascalschumacher 2433cd393e improve ExceptionUtils#getCause @deprecated javadoc 2016-05-24 20:26:41 +02:00
pascalschumacher 7f1b880433 LANG-1228: Add changes.xml entry 2016-05-24 20:16:10 +02:00
Bradley Hess 864721d54b [LANG-1228] Prefer Throwable.getCause() in ExceptionUtils.getCause() (closes #139) 2016-05-24 20:13:39 +02:00
pascalschumacher c36de7a60f LANG-1233: add changes.xml entry 2016-05-22 19:38:22 +02:00
Nick Manley 5845a59289 LANG-1233: DiffBuilder add method to allow appending from a DiffResult (closes #122, closes #151)
Update javadoc for DiffBuilder#append(String, DiffResult)
2016-05-22 19:33:40 +02:00
pascalschumacher 34a5e7fa91 fix generics and rawtypes warnings in MethodUtilsTest 2016-05-22 18:20:39 +02:00
pascalschumacher 3eddcccba7 fix deprecation warning in ConstructorUtilsTest by using Assert#assertArrayEquals instead of Assert#assertEquals to compare arrays 2016-05-22 18:13:50 +02:00
pascalschumacher 5b223744b4 LANG-1176: Improve ArrayUtils removeElements time complexity to O(n) (closes #144)
based on patch submitted by Jeffery Yuan
2016-05-22 17:23:46 +02:00
Nick Manley f8b1f6e745 Add method to DiffBuilder to allow appending from a DiffResult. 2016-05-22 10:30:39 +02:00
pascalschumacher 49455b78bf LANG-1234: add changes.xml entry 2016-05-21 16:50:10 +02:00
Jonatan Jönsson 04b41e2c97 LANG-1234: getLevenshteinDistance with a threshold: optimize implementation if the strings lengths differ more than the threshold (closes #118)
If the string lengths differ more than the threshold, there's no need for the algorithm to begin allocating arrays etc.
2016-05-21 16:47:59 +02:00
ggregory 031f6b082f [LANG-1168] Add SystemUtils.IS_OS_WINDOWS_10 property. 2016-05-20 10:24:35 -07:00
pascalschumacher eccf213204 LANG-787: Add StringUtils#removeIgnoreCase
Patch by Gokul Nanthakumar C
2016-05-20 18:59:00 +02:00
pascalschumacher 1e4a490677 LANG-1232: make javadoc tag order consistent with the rest of the DiffBuilder javadoc 2016-05-19 19:59:41 +02:00
pascalschumacher 0343777db9 LANG-1232: add changes.xml entry 2016-05-19 19:52:42 +02:00
Nick Manley b212aa3c6f LANG-1232: DiffBuilder: Add null check on fieldName when appending Object or Object[] (closes #122). 2016-05-19 19:51:51 +02:00
pascalschumacher f02261849e LANG-1178: add changes.xml entry 2016-05-12 19:48:38 +02:00
Henri Yandell 5eae0a6464 LANG-1178: ArrayUtils.removeAll(Object array, int... indices) should do the clone, not its callers (closes #116) 2016-05-12 19:43:31 +02:00
pascalschumacher 28f7862ab7 LANG-1151: add changes.xml entry
(side effect close #140)
2016-05-11 21:48:40 +02:00
Juan Pablo Santos Rodríguez 54ff33b2ad LANG-1151: Performance improvements for NumberUtils.isParsable (closes #99)
~2.5x performance increase wrt 3.4 version; added a couple checks more to unit tests
2016-05-11 21:43:36 +02:00
pascalschumacher ec8bf5281b LANG-1227: add changes.xml entry 2016-05-10 21:20:38 +02:00
kaching88 a0b798c27a LANG-1120: StringUtils.stripAccents should remove accents from "Ł" and "ł" (closes #105). 2016-05-10 21:18:10 +02:00
ggregory dd5a0e6e1e [LANG-1227] Add XMLCharacter class. 2016-05-09 00:31:06 -07:00
ggregory bbd1dc3439 [LANG-1218] EqualsBuilder.append(Object,Object) is too big to be
inlined, which prevents whole builder to be scalarized. Closes #138.
2016-05-08 09:34:34 -07:00
Casey Scarborough 2b52dedd56 Add tests for missed branches in StringUtils (closes #135)
Side effect: close pull requests which have been merged, but have not been closed due to missing commit comments (close #115, close #120, close #128, close #130).
2016-05-08 14:22:21 +02:00
Casey Scarborough 8acb1d2b42 Fix various Javadoc typos (closes #134) 2016-05-08 12:50:48 +02:00
Chas Honton b877fb9abe LANG-1205: NumberUtils.createNumber() behaves inconsistently with NumberUtils.isNumber()
This closes github #87 thanks to pbrose
2016-04-23 20:35:15 -07:00
Chas Honton 5e62bf80f3 LANG-1115: Add support for varargs in ConstructorUtils, MemberUtils, and MethodUtils
This closes #89 from github.
2016-04-23 20:22:08 -07:00
Chas Honton 77d187eefc LANG-1134: New methods for lang3.Validate
This closes #87 from github.
2016-04-23 18:28:49 -07:00
Bruno P. Kinoshita 2e3fa5c253 LANG-1222: add changes.xml entry. This closes #125 from github. Thanks to Adam J. 2016-04-24 13:17:58 +12:00
Bruno P. Kinoshita 5457345ac9 LANG-1221: add changes.xml entry. This closes #129 from github. Thanks to Pierre Templier 2016-04-24 13:11:07 +12:00
Bruno P. Kinoshita 6e98538200 LANG-1220: add changes.xml entry. This closes #133 from github. Thanks to Casey Scarborough 2016-04-24 13:03:39 +12:00
Casey Scarborough fac65b868c LANG-1220: Add tests for missed branches in DateUtils 2016-04-24 12:54:25 +12:00
Chas Honton c99a787752 LANG-1202: parseDateStrictly does't pass specified locale 2016-04-23 17:44:48 -07:00
Chas Honton ac1c341558 clean up javadoc; fix complaints from maven-javadoc-plugin 2016-04-23 17:31:14 -07:00
Chas Honton 3c92830ec5 LANG-1219: FastDateFormat doesn't respect summer daylight in some localized strings 2016-04-23 13:02:59 -07:00
ggregory e830027629 Formating. 2016-04-19 17:56:16 -07:00
ggregory c158713b66 Add tests with a better comparator from #132. Fix formating. 2016-04-19 17:55:42 -07:00
ggregory 3f796bf746 Add tests with a better comparator. Closes #132 2016-04-19 17:54:04 -07:00
ggregory 833885c29d Applied Javadoc patch and added new test per
https://github.com/apache/commons-lang/pull/115
2016-04-13 14:13:24 -07:00
ggregory ff902c1561 Formatting fixes per
https://patch-diff.githubusercontent.com/raw/apache/commons-lang/pull/128.diff
2016-04-13 14:09:58 -07:00
ggregory 15b80753a6 Reuse 2016-04-13 13:57:35 -07:00
ggregory a6d27fd89d Fix Javadoc typo. 2016-04-13 12:26:24 -07:00
ggregory af81f78543 Javadoc fix. 2016-04-09 19:41:23 -07:00
ggregory a1cde6ab70 [LANG-1201] Add a TimeUnit-like classes for base 2 and base 10 digital
conversions (bits, bytes, KB, MB, and so on). Forgot to commit those.
2016-03-14 09:31:03 -07:00
ggregory 04e52eb615 [LANG-1201] Add a TimeUnit-like classes for base 2 and base 10 digital
conversions (bits, bytes, KB, MB, and so on).
2016-03-13 19:54:32 -07:00
ggregory 7642423cfa [LANG-1146] z/OS identification in SystemUtils. Simplest implementation. 2016-03-12 21:48:27 -08:00