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

commit 342a00ad955758fd4123f91fb3187b0de6257677
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Jun 4 08:59:14 2024 -0400

    PMD SimplifiedTernary
---
 src/main/java/org/apache/commons/compress/utils/OsgiUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/compress/utils/OsgiUtils.java 
b/src/main/java/org/apache/commons/compress/utils/OsgiUtils.java
index 123f3806e..8bf519f05 100644
--- a/src/main/java/org/apache/commons/compress/utils/OsgiUtils.java
+++ b/src/main/java/org/apache/commons/compress/utils/OsgiUtils.java
@@ -28,7 +28,7 @@ public class OsgiUtils {
 
     static {
         final ClassLoader classLoader = OsgiUtils.class.getClassLoader();
-        inOsgiEnvironment = classLoader != null ? 
isBundleReference(classLoader.getClass()) : false;
+        inOsgiEnvironment = classLoader != null && 
isBundleReference(classLoader.getClass());
     }
 
     private static boolean isBundleReference(final Class<?> clazz) {

Reply via email to