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


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

commit 5552512611b860084547d511b062b6c564c99f2c
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jan 17 09:13:02 2021 -0500

    Use isEmpty().
---
 .../commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPSender.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/commons-jcs-core/src/main/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPSender.java
 
b/commons-jcs-core/src/main/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPSender.java
index 769a472..bb75195 100644
--- 
a/commons-jcs-core/src/main/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPSender.java
+++ 
b/commons-jcs-core/src/main/java/org/apache/commons/jcs3/auxiliary/lateral/socket/tcp/LateralTCPSender.java
@@ -78,7 +78,7 @@ public class LateralTCPSender
         final int po = Integer.parseInt( p1.substring( p1.indexOf( ":" ) + 1 ) 
);
         log.debug( "h2 = {0}, po = {1}", h2, po );
 
-        if ( h2.length() == 0 )
+        if ( h2.isEmpty() )
         {
             throw new IOException( "Cannot connect to invalid address [" + h2 
+ ":" + po + "]" );
         }

Reply via email to