Commit Graph

4578 Commits

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