Commit Graph

4600 Commits

Author SHA1 Message Date
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
Benedikt Ritter d53d0419f1 Merge branch 'voyageth:patch-1' 2016-09-07 08:47:27 +02: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 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
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
Benedikt Ritter 03384395a8 Merge branch 'fix-typo-in-toMap-javadoc' 2016-06-24 15:24:49 +02: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