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/07/10 01:23:13 UTC
(commons-jcs) 11/31: Use final
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 b50d2ce982f2661b118dfdc6e6aaaff2daf434ac
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jul 9 19:29:38 2024 -0400
Use final
Remove redundant keywords
---
.../jcs3/auxiliary/disk/block/BlockDiskCacheAttributes.java | 12 ++++++------
.../auxiliary/disk/block/BlockDiskElementDescriptor.java | 4 +---
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskCacheAttributes.java b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskCacheAttributes.java
index 14a35375..1ff21fb8 100644
--- a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskCacheAttributes.java
+++ b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskCacheAttributes.java
@@ -105,12 +105,12 @@ public class BlockDiskCacheAttributes
{
final StringBuilder str = new StringBuilder();
str.append( "\nBlockDiskAttributes " );
- str.append( "\n DiskPath [" + this.getDiskPath() + "]" );
- str.append( "\n MaxKeySize [" + this.getMaxKeySize() + "]" );
- str.append( "\n MaxPurgatorySize [" + this.getMaxPurgatorySize() + "]" );
- str.append( "\n BlockSizeBytes [" + this.getBlockSizeBytes() + "]" );
- str.append( "\n KeyPersistenceIntervalSeconds [" + this.getKeyPersistenceIntervalSeconds() + "]" );
- str.append( "\n DiskLimitType [" + this.getDiskLimitType() + "]" );
+ str.append( "\n DiskPath [" + getDiskPath() + "]" );
+ str.append( "\n MaxKeySize [" + getMaxKeySize() + "]" );
+ str.append( "\n MaxPurgatorySize [" + getMaxPurgatorySize() + "]" );
+ str.append( "\n BlockSizeBytes [" + getBlockSizeBytes() + "]" );
+ str.append( "\n KeyPersistenceIntervalSeconds [" + getKeyPersistenceIntervalSeconds() + "]" );
+ str.append( "\n DiskLimitType [" + getDiskLimitType() + "]" );
return str.toString();
}
}
diff --git a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskElementDescriptor.java b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskElementDescriptor.java
index 8cafe8c0..8ec39f9a 100644
--- a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskElementDescriptor.java
+++ b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/block/BlockDiskElementDescriptor.java
@@ -48,7 +48,6 @@ public class BlockDiskElementDescriptor<K>
*/
public BlockDiskElementDescriptor()
{
- super();
}
/**
@@ -59,9 +58,8 @@ public class BlockDiskElementDescriptor<K>
*
* @since 3.1
*/
- public BlockDiskElementDescriptor(K key, int[] blocks)
+ public BlockDiskElementDescriptor(final K key, final int[] blocks)
{
- super();
this.key = key;
this.blocks = blocks;
}