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-jcs.git
The following commit(s) were added to refs/heads/master by this push:
new 901ee855 Flip null test
901ee855 is described below
commit 901ee855847837c279218dfe6432a624fd9aadd8
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jul 5 10:02:45 2026 -0400
Flip null test
---
.../java/org/apache/commons/jcs4/auxiliary/remote/RemoteUtils.java | 4 ++--
.../main/java/org/apache/commons/jcs4/utils/zip/CompressionUtil.java | 2 +-
.../main/java/org/apache/commons/jcs4/jcache/cdi/CDIJCacheHelper.java | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/auxiliary/remote/RemoteUtils.java
b/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/auxiliary/remote/RemoteUtils.java
index c4a43b3c..e7bb7281 100644
---
a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/auxiliary/remote/RemoteUtils.java
+++
b/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/auxiliary/remote/RemoteUtils.java
@@ -204,12 +204,12 @@ public class RemoteUtils
InputStream is = RemoteUtils.class.getResourceAsStream(propFile);
// Try root of class path
- if (null == is && !propFile.startsWith("/"))
+ if (is == null && !propFile.startsWith("/"))
{
is = RemoteUtils.class.getResourceAsStream("/" + propFile);
}
- if (null == is) // not found in class path
+ if (is == null) // not found in class path
{
final Path propPath = Paths.get(propFile);
if (Files.exists(propPath))
diff --git
a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/utils/zip/CompressionUtil.java
b/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/utils/zip/CompressionUtil.java
index 6f249764..7c7a8986 100644
---
a/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/utils/zip/CompressionUtil.java
+++
b/commons-jcs4-core/src/main/java/org/apache/commons/jcs4/utils/zip/CompressionUtil.java
@@ -109,7 +109,7 @@ public final class CompressionUtil
*/
public static byte[] decompressByteArray( final byte[] input, final int
bufferLength )
{
- if ( null == input )
+ if ( input == null )
{
throw new IllegalArgumentException( "Input was null" );
}
diff --git
a/commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/cdi/CDIJCacheHelper.java
b/commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/cdi/CDIJCacheHelper.java
index 46249789..ea7d6f96 100644
---
a/commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/cdi/CDIJCacheHelper.java
+++
b/commons-jcs4-jcache/src/main/java/org/apache/commons/jcs4/jcache/cdi/CDIJCacheHelper.java
@@ -350,7 +350,7 @@ public class CDIJCacheHelper
private static Class<?> findKeyType(final Object target)
{
- if (null == target)
+ if (target == null)
{
return null;
}