This is an automated email from the ASF dual-hosted git repository.
garydgregory 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 21becb2 Flip null test
21becb2 is described below
commit 21becb2a7aaf9866f168d2e9f6ad87c1b83ddcac
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jul 5 09:59:24 2026 -0400
Flip null test
---
src/main/java/org/apache/commons/logging/LogSource.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/logging/LogSource.java
b/src/main/java/org/apache/commons/logging/LogSource.java
index 0ccebef..bd737b3 100644
--- a/src/main/java/org/apache/commons/logging/LogSource.java
+++ b/src/main/java/org/apache/commons/logging/LogSource.java
@@ -188,7 +188,7 @@ public class LogSource {
} catch (final Throwable t) {
log = null;
}
- if (null == log) {
+ if (log == null) {
log = new NoOpLog(name);
}
return log;