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


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

commit 32891becf56750cdd0dbb1728713fda65a5275a3
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Oct 2 13:39:32 2022 -0400

    Use String.isEmpty()
---
 src/main/java/org/apache/commons/logging/LogFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/logging/LogFactory.java 
b/src/main/java/org/apache/commons/logging/LogFactory.java
index a48efa7..733b836 100644
--- a/src/main/java/org/apache/commons/logging/LogFactory.java
+++ b/src/main/java/org/apache/commons/logging/LogFactory.java
@@ -544,7 +544,7 @@ public abstract class LogFactory {
                         rd.close();
                     }
 
-                    if (factoryClassName != null && ! 
"".equals(factoryClassName)) {
+                    if (factoryClassName != null && ! 
factoryClassName.isEmpty()) {
                         if (isDiagnosticsEnabled()) {
                             logDiagnostic("[LOOKUP]  Creating an instance of 
LogFactory class " +
                                           factoryClassName +

Reply via email to