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 2021/01/17 14:04:05 UTC

[commons-chain] branch master updated: Use isEmpty().

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-chain.git


The following commit(s) were added to refs/heads/master by this push:
     new bec6a61  Use isEmpty().
bec6a61 is described below

commit bec6a61f60fb1610f1d47a3979c10b8a89c30250
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 17 09:04:00 2021 -0500

    Use isEmpty().
---
 web/src/main/java/org/apache/commons/chain2/web/ChainResources.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/src/main/java/org/apache/commons/chain2/web/ChainResources.java b/web/src/main/java/org/apache/commons/chain2/web/ChainResources.java
index 18bb2a7..24012a0 100644
--- a/web/src/main/java/org/apache/commons/chain2/web/ChainResources.java
+++ b/web/src/main/java/org/apache/commons/chain2/web/ChainResources.java
@@ -135,7 +135,7 @@ final class ChainResources {
      * @since Chain 1.1
      */
     static String[] getResourcePaths(String resources) {
-        if (resources == null || resources.length() == 0) {
+        if (resources == null || resources.isEmpty()) {
             return new String[0];
         }