Commit Graph

4600 Commits

Author SHA1 Message Date
Benedikt Ritter 9efa153e44 Update changes.xml for LANG-1127 2015-05-07 22:12:17 +02:00
Benedikt Ritter 9604c85306 Merge branch 'LANG-1135'
LANG-1135: Add method containsAllWords to WordUtils. Thanks to Eduardo Martins.
2015-05-07 21:28:25 +02:00
Benedikt Ritter 1182950a88 Add LANG-1135 to changes.xml 2015-05-07 21:26:59 +02:00
Benedikt Ritter d68f7f5f44 Write basic unit test for SystemDefaultsSwitch 2015-05-07 21:15:37 +02:00
Benedikt Ritter bcb33ec1c7 Rename SwitchDefaults to SystemDefaultsSwitch to better describe it's role 2015-05-07 20:57:12 +02:00
Benedikt Ritter 18b3437c15 Fix whitespaces and indentation 2015-05-07 20:49:52 +02:00
Benedikt Ritter dee94449e6 Merge branch 'LANG-1132'
LANG-1132: ReflectionToStringBuilder doesn't throw IllegalArgumentException when
the constructor's object param is null. Thanks to Jack Tan.
2015-05-07 20:44:47 +02:00
Benedikt Ritter d282015e73 Add LANG-1132 to changes.xml 2015-05-07 20:41:02 +02:00
Benedikt Ritter 0e96d84e23 Use contributor name from jira instead of github user name 2015-05-07 20:38:52 +02:00
Benedikt Ritter 13d7ce9fb6 Merge branch 'LANG-1122'
LANG-1122: Inconsistent behavior of swap for malformed inputs. Thanks
to Adrian Ber.
2015-05-07 20:31:49 +02:00
Benedikt Ritter 35096beed0 Add Adrian Ber to the list of contributors 2015-05-07 20:30:09 +02:00
Benedikt Ritter c885a32e24 Add LANG-1122 to changes.xml 2015-05-07 20:29:53 +02:00
Benedikt Ritter 48d142dc3b Merge branch 'remove_ThreadUtils_compiler_warnings'
Remove compiler warnings from ThreadUtils. Thanks to Pascal Schuhmacher.
2015-05-07 20:02:28 +02:00
Benedikt Ritter a2c09f81f4 Fix wrong JavaDoc parameter name 2015-05-07 19:45:30 +02:00
Benedikt Ritter a05233f994 Merge branch 'StringUtilsTest_compiler_warnings'
Remove compiler warnings of joinWith tests. Thanks to Pascal Schuhmacher.
2015-05-07 19:39:56 +02:00
Eduardo Martins 633ce60496 Always return false to contains a null word 2015-05-07 14:17:28 -03:00
Benedikt Ritter b14c6e7a54 Merge branch 'cleanup-threadutils-test' 2015-05-07 18:07:02 +02:00
Benedikt Ritter 6bb871786e Fix potential NPE by checking for object identity instead of comparing one property only 2015-05-07 18:06:48 +02:00
Benedikt Ritter 8ac3334a04 Use enhanced for loop instead of iterator based loop 2015-05-07 18:04:24 +02:00
Benedikt Ritter 14c2afcd63 Make doclint happy 2015-05-07 18:01:41 +02:00
Benedikt Ritter 507451866c Remove redundant qualifiers 2015-05-07 18:01:04 +02:00
Benedikt Ritter 7a2b1c1c3f Merge branch 'better-contains-javadoc' 2015-05-07 17:56:04 +02:00
Benedikt Ritter ec4d8a9a6b Remove explicit (redundant) array creations for var args parameters 2015-05-07 17:53:23 +02:00
Benedikt Ritter 405bde36c4 Clarify behavior for chars in the input char array which are not next to each other in the CharSequence to search 2015-05-07 17:50:24 +02:00
Benedikt Ritter 636a514840 Clarify behavior for chars that are not next to each other in the supplied search CharSequence 2015-05-07 17:48:32 +02:00
Benedikt Ritter adc6bc4104 Clarify behavior of containsAny for null entries in the supplied CharSequence array 2015-05-07 17:47:20 +02:00
Benedikt Ritter d864bbfb8f Merge branch 'supress_compiler_warning'
@SuppressWarnings("deprecation") to joinWith, because it uses the deprecated
ObjectUtils.toString(Object) method (which is o.k. to use as long as
commons-lang3 does not require java 7 or greater). Thanks to
Pascal Schumacher.
2015-05-07 17:26:59 +02:00
beradrian e79a590e0c new test case
explanations about algorithm
2015-05-07 11:31:28 +03:00
beradrian 5b7608d154 consistent treatment for negative indices for swap method 2015-05-07 09:50:41 +03:00
Pascal Schumacher 82152f41ac add @SuppressWarnings(deprecation) in joinWith(), because it uses the deprecated ObjectUtils.toString(Object) method (which is o.k. to use as long as we do not require java 7 or greater) 2015-05-06 21:44:41 +02:00
Jack 0e266204f5 add expected=IllegalArgumentException.class to ToStringBuilderTest.testReflectionNull 2015-05-06 13:34:37 +08:00
Benedikt Ritter 3dbf1eedd9 Merge pull request #1 from chonton/LANG-1127
LANG-1127: Rule alternative implementation
2015-05-06 07:23:46 +02:00
Jack 39380da86a add checkNotNull method in ReflectionToStringBuilder.java to fix #LANG-1132 2015-05-06 11:43:03 +08:00
Jack 474a837858 add testConstructorWithNullObject case in ReflectionToStringBuilderTest.java 2015-05-06 11:10:11 +08:00
Pascal Schumacher 7d5a61ed64 remove compiler warnings from ThreadUtils 2015-05-05 23:31:20 +02:00
Pascal Schumacher 5f9e0851da remove compiler warnings of joinWith tests 2015-05-05 23:25:12 +02:00
Eduardo Martins 54facb4fd9 DOC: StringUtils.containsAny. ADD: containsAllWords to WordUtils 2015-05-05 16:34:48 -03:00
Henri Yandell d6dd2b4cd4 Removed spurious * lines before a */; mostly created by removing the @version lines 2015-05-05 12:21:05 -07:00
Henri Yandell 740c0f95fb Removed @version $ from source per LANG-1129 2015-05-05 12:12:15 -07:00
Benedikt Ritter dfc9888860 Use final where possible 2015-05-05 21:05:37 +02:00
Benedikt Ritter 7fae5b0b17 Merge branch 'LANG-701'
LANG-701: StringUtils join with var args. Thanks to James Sawle.
2015-05-05 20:32:39 +02:00
Benedikt Ritter 9752bbc299 Add LANG-701 to changes.xml 2015-05-05 20:31:48 +02:00
Benedikt Ritter 98220ad03e Merge branch 'LANG-1130'
LANG-1130: Fix critical issues reported by SonarQube.
Fixed critical issues in ClassUtils and TypeUtils. The
other three issues are false positives.
2015-05-05 19:33:28 +02:00
Benedikt Ritter b162f51adc Add LANG-1130 to changes.xml 2015-05-05 19:32:50 +02:00
Benedikt Ritter fc73151cfc LANG-1131: StrBuilder.equals(StrBuilder) doesn't check for null inputs 2015-05-05 19:17:40 +02:00
Benedikt Ritter e2ec4f2fdb If statement can be simplified 2015-05-05 19:03:19 +02:00
Benedikt Ritter 7af67bdd16 Fix SonarQube warning: The user-supplied array 'typeArguments' is stored directly. 2015-05-05 18:58:41 +02:00
Benedikt Ritter 8d0214a741 Fix SonarQube warning: org.apache.commons.lang3.ClassUtils.<static initializer for ClassUtils>()
makes inefficient use of keySet iterator instead of entrySet iterator.
2015-05-05 18:58:13 +02:00
Chas Honton eb5f7ed891 LANG-1127: Rule alternative implementation 2015-05-04 23:02:22 -07:00
jamessawle 155cec1085 LANG-701 - Added new joinWith method to support varargs 2015-05-04 22:19:18 +01:00