You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/09/12 13:15:45 UTC

(commons-jcs) 01/09: Remove redundant syntax

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 0520e1f8ebc1d19e89b98899ef059f5cb1c63ad1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Sep 12 09:09:01 2024 -0400

    Remove redundant syntax
---
 .../jcs3/auxiliary/disk/indexed/AbstractIndexDiskCacheUnitTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commons-jcs3-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/AbstractIndexDiskCacheUnitTest.java b/commons-jcs3-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/AbstractIndexDiskCacheUnitTest.java
index 950c9a25..eb735953 100644
--- a/commons-jcs3-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/AbstractIndexDiskCacheUnitTest.java
+++ b/commons-jcs3-core/src/test/java/org/apache/commons/jcs3/auxiliary/disk/indexed/AbstractIndexDiskCacheUnitTest.java
@@ -186,7 +186,7 @@ public abstract class AbstractIndexDiskCacheUnitTest{
         for (int i = 0; i < numDescriptors; i++)
         {
             final IndexedDiskElementDescriptor descriptor = new IndexedDiskElementDescriptor(pos, i * 2);
-            pos = pos + (i * 2) + IndexedDisk.HEADER_SIZE_BYTES;
+            pos = pos + i * 2 + IndexedDisk.HEADER_SIZE_BYTES;
             sortedDescriptors.add(descriptor);
         }
 
@@ -216,7 +216,7 @@ public abstract class AbstractIndexDiskCacheUnitTest{
         {
             final IndexedDiskElementDescriptor descriptor = new IndexedDiskElementDescriptor(pos, i * 2);
             // don't add the header + IndexedDisk.RECORD_HEADER;
-            pos = pos + (i * 2);
+            pos = pos + i * 2;
             sortedDescriptors.add(descriptor);
         }