[GitHub] commons-lang pull request #193: Add isAnyNotEmpty() and isAnyNotBlank() to S...

2016-09-24 Thread ptemplier
Github user ptemplier commented on a diff in the pull request:

https://github.com/apache/commons-lang/pull/193#discussion_r80358287
  
--- Diff: src/main/java/org/apache/commons/lang3/StringUtils.java ---
@@ -258,6 +258,35 @@ public static boolean isAnyEmpty(final CharSequence... 
css) {
 }
 
 /**
+ * Checks if any one of the CharSequences are not empty ("") or 
null.
+ *
+ * 
+ * StringUtils.isAnyNotEmpty(null) = false
+ * StringUtils.isAnyNotEmpty(null, "foo")  = true
+ * StringUtils.isAnyNotEmpty("", "bar")= true
+ * StringUtils.isAnyNotEmpty("bob", "")= true
+ * StringUtils.isAnyNotEmpty("  bob  ", null)  = true
+ * StringUtils.isAnyNotEmpty(" ", "bar")   = true
+ * StringUtils.isAnyNotEmpty("foo", "bar") = true
+ * 
+ *
+ * @param css  the CharSequences to check, may be null or empty
+ * @return {@code true} if any of the CharSequences are empty or null
+ * @since 3.5
+ */
+public static boolean isAnyNotEmpty(final CharSequence... css) {
+  if (ArrayUtils.isEmpty(css)) {
+return true;
--- End diff --

I took the same behaviour as isAnyBlank()/isAnyEmpty() but maybe those 
should return false too. It would make more sense.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] commons-lang pull request #193: Add isAnyNotEmpty() and isAnyNotBlank() to S...

2016-09-23 Thread ptemplier
GitHub user ptemplier opened a pull request:

https://github.com/apache/commons-lang/pull/193

Add isAnyNotEmpty() and isAnyNotBlank() to StringUtils



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/ptemplier/commons-lang stringutils-new-methods

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/commons-lang/pull/193.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #193


commit d2871a486271d60d49a557bc1f1d296f5efccf97
Author: Pierre Templier <pierre.templ...@gmail.com>
Date:   2016-09-23T22:49:32Z

Add isAnyNotEmpty() and isAnyNotBlank() to StringUtils




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] commons-lang pull request: Fix typo on appendIfMissing javadoc

2016-03-10 Thread ptemplier
Github user ptemplier commented on the pull request:

https://github.com/apache/commons-lang/pull/129#issuecomment-194812742
  
:+1: 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] commons-lang pull request: Fix typo on appendIfMissing javadoc

2016-03-09 Thread ptemplier
GitHub user ptemplier opened a pull request:

https://github.com/apache/commons-lang/pull/129

Fix typo on appendIfMissing javadoc



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/ptemplier/commons-lang patch-1

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/commons-lang/pull/129.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #129


commit 800df61d3d13dc720bc89fc2f6bd02cb5775ee01
Author: Pierre Templier <pierre.templ...@gmail.com>
Date:   2016-03-09T12:37:21Z

Fix typo on appendIfMissing javadoc




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---