You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/11/17 20:18:17 UTC

[commons-lang] branch master updated: Fix formatting of isAnyBlank() and isAnyEmpty(). (#513)

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 5f3a9a6  Fix formatting of isAnyBlank() and isAnyEmpty(). (#513)
5f3a9a6 is described below

commit 5f3a9a6eae884a8be0a6ff41e581232c80b10f5f
Author: Isira Seneviratne <31...@users.noreply.github.com>
AuthorDate: Wed Nov 18 01:47:57 2020 +0530

    Fix formatting of isAnyBlank() and isAnyEmpty(). (#513)
---
 .../java/org/apache/commons/lang3/StringUtils.java | 32 +++++++++++-----------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java
index c3e1a21..6a6972c 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -3463,15 +3463,15 @@ public class StringUtils {
      * @since 3.2
      */
     public static boolean isAnyBlank(final CharSequence... css) {
-      if (ArrayUtils.isEmpty(css)) {
-        return false;
-      }
-      for (final CharSequence cs : css) {
-        if (isBlank(cs)) {
-          return true;
+        if (ArrayUtils.isEmpty(css)) {
+            return false;
         }
-      }
-      return false;
+        for (final CharSequence cs : css) {
+            if (isBlank(cs)) {
+                return true;
+            }
+        }
+        return false;
     }
 
     /**
@@ -3495,15 +3495,15 @@ public class StringUtils {
      * @since 3.2
      */
     public static boolean isAnyEmpty(final CharSequence... css) {
-      if (ArrayUtils.isEmpty(css)) {
-        return false;
-      }
-      for (final CharSequence cs : css) {
-        if (isEmpty(cs)) {
-          return true;
+        if (ArrayUtils.isEmpty(css)) {
+            return false;
+        }
+        for (final CharSequence cs : css) {
+            if (isEmpty(cs)) {
+                return true;
+            }
         }
-      }
-      return false;
+        return false;
     }
 
     /**