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.
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.
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"
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
To fix this issues revert the unreleased "LANG-456: HashCodeBuilder throws StackOverflowError in bidirectional navigable".
This reverts commit b5749b4f54.
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.