Commit Graph

4920 Commits

Author SHA1 Message Date
Benedikt Ritter 3c89994355
Better local variable names 2017-04-17 12:01:54 +02:00
Rob Tompkins cd05fddd4f (docs) removing erroneous link to sonar dashboard 2017-04-11 20:42:29 -04:00
pascalschumacher 5d3a2081c5 LANG-1313: Add ArchUtils
add missing since javadoc tags
2017-03-27 21:59:42 +02:00
pascalschumacher 30d4070af9 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-lang 2017-03-27 20:42:48 +02:00
pascalschumacher 46edb45d3e add changes.xml entry for LANG-1313 2017-03-27 20:41:07 +02:00
Tomschi 90f0a680ad LANG-1313: Add ArchUtils - an utility class for the "os.arch" system property (closes #231) 2017-03-27 20:40:28 +02:00
Benedikt Ritter b06f13ff0e Remove trailing white spaces 2017-03-27 20:15:36 +02:00
Benedikt Ritter 54c3daaf17 Correct @since annotation 2017-03-27 20:09:14 +02:00
pascalschumacher 1674c953fa Restore clirr report generation
Since commons-parent version 41, generation of the clirr report for the site has to be explicitly enabled by adding a "src\site\resources\profile.clirr" file.
2017-03-26 14:06:23 +02:00
Tobias Soloschenko 4a300fee2e Fixed javadoc of MutableBoolean setTrue / setFalse (closes #260) 2017-03-22 17:32:14 +01:00
pascalschumacher 5d6c176388 changes.xml: add entry for LANG-1310 2017-03-19 17:14:42 +01:00
drajakumar 1a20867d01 LANG-1310: MethodUtils.invokeMethod throws ArrayStoreException if using varargs arguments and smaller types than the method defines (closes #256) 2017-03-19 17:12:16 +01:00
pascalschumacher 7ac12154b0 README.md: remove license badge, because github now displays the license at the top of the page 2017-03-19 14:42:31 +01:00
pascalschumacher 811dbe7226 restore deprecated annotation of StringUtils#getJaroWinklerDistance
This annotation was with "LANG-1316: Deprecate classes/methods moved to commons-text" and removed by mistake while reverting "LANG-1269: Wrong name or result of StringUtils#getJaroWinklerDistance".
2017-03-19 14:37:19 +01:00
pascalschumacher f4ee399e31 Revert "LANG-1269: Wrong name or result of StringUtils#getJaroWinklerDistance (closes #198)"
This reverts commit a40b2a907a, because adding a new method StringUtils#getJaroWinklerSimilarity and immediately deprecating it makes not sense.
2017-03-19 14:25:20 +01:00
pascalschumacher 844cd4298e LANG-1316: Deprecate classes/methods moved to commons-text (closes #255)
* org.apache.commons.lang3.text.translate - every class
* org.apache.commons.lang3.text - every class other than WordUtils
* StringEscapeUtils - whole class
* StringUtils: getLevenshteinDistance, getFuzzyDistance and getJaroWinklerSimilarity methods
* ObjectUtils: identityToString(final StrBuilder builder, final Object object) method (StrBuilder was moved to commons-text)
2017-03-19 14:12:44 +01:00
pascalschumacher 9aea44acea travis: add clirr check 2017-03-19 10:41:33 +01:00
pascalschumacher e702828e7b checkstyle-suppressions.xml: make paths work on windows 2017-03-19 10:32:33 +01:00
pascalschumacher 99900ae089 StringUtilsEqualsIndexOfTest: fix checkstyle violations 2017-03-19 10:31:21 +01:00
Allon Mureinik 27d3d40f7c Apply checkstyle checks to test files (closes #257)
This patch enforces the code style defined by the checkstyle checks
to the test files too.

In the cases where it would just add robustness and not improve the
code's readability and maintainability (specifically - the javadoc
checks), those checks are explicitly suppressed.
2017-03-19 10:10:50 +01:00
Allon Mureinik 1731949116 MethodUtilsTest whitespaces
Clean up MethodUtilsTest whitespaces as per the project's standards -
no trailing whitespaces are allowed and spaces are used for
indentation.
2017-03-19 10:10:45 +01:00
Allon Mureinik 6bc8650ed4 Remove test wildcard imports
This patch applies the de-facto project's coding standard on the test
files and replaces wildcard static imports with series of single
method imports.
2017-03-19 10:10:45 +01:00
Rob Tompkins bf80b9e280 LANG-1300: fix javadoc build && to && 2017-03-17 06:59:45 -04:00
MarkDacek b521820b23 LANG-1300: Merged Rob's javadoc comments and updated to use code units instead of code points 2017-03-15 23:32:31 -04:00
Rob Tompkins 0e1b328e56 LANG-1300: Crediting Mark for work 2017-03-15 08:46:13 -04:00
Rob Tompkins 9fe11e688e LANG-1300: Updating javadocs 2017-03-15 08:45:55 -04:00
Rob Tompkins e9610ccf30 Merge branch 'Lang1300CharSequenceUtilsChange' of https://github.com/MarkDacek/commons-lang 2017-03-15 08:45:21 -04:00
pascalschumacher 6700d58fd6 update commons-parent to version 42 2017-03-14 22:05:53 +01:00
pascalschumacher 39a2a6fa38 correct LANG-1314 changes.xml entry description 2017-03-13 09:06:29 +01:00
pascalschumacher 15dcb423cf .travis.yml: include apache rat license check in the main script, so that the build fails if there are violations 2017-03-12 18:07:19 +01:00
Allon Mureinik 4fb393be2c Add checkstyle to Travis CI (closes #254)
Currently, checkstyle is only run as part of the reporting phase, and
it's up to the developer to check the report manually.

This patch adds the checkstyle configuration to the build plugins so
it can be used to check the code (as opposed to just generate a
report of the failures) and adds it to Travis CI's configuration so
every new patch will be automatically checked against it.
2017-03-12 17:57:23 +01:00
Allon Mureinik 754e669f76 org.apache.commons.lang3.concurrent.annotation package-info
Added package-info.java to the
org.apache.commons.lang3.concurrent.annotation package to solve a
checkstyle violation.
2017-03-12 17:41:50 +01:00
Allon Mureinik c121f03d5c Upgrade maven-checkstyle-plugin to 2.17
This patch upgrades maven-checkstyle-plugin to the latest available
version, 2.17.

This is done in order to consume a fix for checkstyle wrongfully
reporting an error if the @return javadoc tag was used in an
annotation type, as it is in Guarded (line 36).

Note that checkstyle has removed the RedundantThrows check (see
discussion at https://github.com/checkstyle/checkstyle/issues/473),
so it was removed from the project's checkstyle.xml configuration.
2017-03-12 17:41:50 +01:00
Allon Mureinik 4259a706ab Replace tabs with spaces in DateUtils 2017-03-12 17:41:50 +01:00
Allon Mureinik ba7c788042 Remove unused SystemUtils import from ExceptionUtils 2017-03-12 17:41:49 +01:00
Allon Mureinik 1f8479a84b Apply JavaDoc checkstyle only to public methods
The defacto style of the project requires Javadoc for public methods
only, but the checkstyle Javadoc check defaults to requiring them even
for private methods, generating 46 errors.

This patch sets the checkstyle Javadoc check's scope to public to clean
up the checkstyle report so it can be enabled in the CI.

If we wish to reset the check to a laxer scope, the aforementioned
errors should be fixed first.
2017-03-12 17:41:49 +01:00
pascalschumacher 4282efae5f LANG-1293: Add StringUtils#isAllEmpty and #isAllBlank methods
fix error in javadoc

(side effects: close #221, close #197)
2017-03-12 17:33:53 +01:00
pascalschumacher 3ce7f9eecf revert "LANG-1270: Add StringUtils#isAnyNotEmpty and #isAnyNotBlank" and add "LANG-1293: Add StringUtils#isAllEmpty and #isAllBlank methods" instead 2017-03-12 17:21:27 +01:00
Martin 6b9c331588 LANG-1293: Add StringUtils#isAllEmpty and #isAllBlank methods 2017-03-12 17:07:31 +01:00
pascalschumacher 31a9fa0cce ClassUtilsTest: some tests can simplified because lang does not support java versions without autoboxing anymore 2017-03-12 13:44:03 +01:00
pascalschumacher 5482ce61b0 ClassUtilsTest#test_isAssignable_ClassArray_ClassArray: add explicit cast to avoid compiler warning and remove commented out code 2017-03-12 13:13:35 +01:00
pascalschumacher f0f896ee60 AbstractExceptionContextTest#testJavaSerialization: remove unnecessary SuppressWarnings annotation 2017-03-12 13:10:34 +01:00
pascalschumacher 05bf337fc0 StringUtils#indexOfAny, #lastIndexOfAny: remove unused local variable 2017-03-12 13:06:53 +01:00
Bruno P. Kinoshita ee19f8247c Fix checkstyle xml by closing module tag 2017-03-09 22:03:56 +13:00
MarkDacek b45435c950 LANG-1300: changed CharSequence lastIndexOf for Supplementary Characters 2017-03-08 23:18:10 -05:00
MarkDacek 12e597a78c LANG-1300: fixed CharSequenceUtils indexOf for Supplementary chars 2017-03-08 22:58:51 -05:00
MarkDacek 66f8569ecc LANG-1300: Reverted CharSequenceUtilsTest to original 2017-03-06 21:55:39 -05:00
MarkDacek 0181c8059c LANG-1300: Updated StringUtilsEqualsIndexOfTest to account for new changes 2017-03-06 21:54:40 -05:00
MarkDacek a8f41ec97d LANG-1300: fixed formatting on CharSequenceUtils.java 2017-03-06 18:44:25 -05:00
pascalschumacher d43e1d0198 add changes.xml entry for LANG-1314 2017-03-06 19:27:36 +01:00