4762 Commits

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