Commit Graph

4582 Commits

Author SHA1 Message Date
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
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