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
commit 8ad0b962c0dc55c1275f0638a1efd99b6a407439 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Jul 9 19:22:58 2024 -0400 Remove useless parens --- .../jcs3/auxiliary/disk/block/AbstractBlockDiskCacheUnitTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commons-jcs3-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/block/AbstractBlockDiskCacheUnitTest.java b/commons-jcs3-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/block/AbstractBlockDiskCacheUnitTest.java index db130eec..08591bfd 100644 --- a/commons-jcs3-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/block/AbstractBlockDiskCacheUnitTest.java +++ b/commons-jcs3-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/block/AbstractBlockDiskCacheUnitTest.java @@ -109,7 +109,7 @@ public abstract class AbstractBlockDiskCacheUnitTest{ { final ICacheElement<String, X> afterElement = diskCache.get("x" + i); assertNotNull("Missing element from cache. Cache size: " + diskCache.getSize() + " element: x" + i, afterElement); - final X after = (afterElement.getVal()); + final X after = afterElement.getVal(); assertNotNull(after); assertEquals("wrong string after retrieval", string, after.string); @@ -575,7 +575,7 @@ public abstract class AbstractBlockDiskCacheUnitTest{ Thread.sleep(1000); final ICacheElement<String, X> afterElement = diskCache.get("x"); // System.out.println( "afterElement = " + afterElement ); - final X after = (afterElement.getVal()); + final X after = afterElement.getVal(); assertNotNull(after); assertEquals("wrong string after retrieval", string, after.string);