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 c37e91c0f8a4af90423272080936e8b43621b48a Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Jul 9 19:28:42 2024 -0400 Use final --- .../org/apache/commons/jcs/yajcache/file/CacheFileContentType.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commons-jcs3-sandbox/commons-jcs3-yajcache/src/main/java/org/apache/commons/jcs/yajcache/file/CacheFileContentType.java b/commons-jcs3-sandbox/commons-jcs3-yajcache/src/main/java/org/apache/commons/jcs/yajcache/file/CacheFileContentType.java index 62b9f3fb..09650645 100644 --- a/commons-jcs3-sandbox/commons-jcs3-yajcache/src/main/java/org/apache/commons/jcs/yajcache/file/CacheFileContentType.java +++ b/commons-jcs3-sandbox/commons-jcs3-yajcache/src/main/java/org/apache/commons/jcs/yajcache/file/CacheFileContentType.java @@ -52,7 +52,7 @@ public enum CacheFileContentType { * from the given byte value. */ - public static @NonNullable CacheFileContentType fromByte(byte b) { + public static @NonNullable CacheFileContentType fromByte(final byte b) { switch(b) { case 0: return JAVA_SERIALIZATION; @@ -62,7 +62,7 @@ public enum CacheFileContentType { throw new IllegalArgumentException("Unsupported b="+b); } } - public byte[] serialize(Object obj) { + public byte[] serialize(final Object obj) { switch(this) { case JAVA_SERIALIZATION: return SerializationUtils.serialize((Serializable)obj); @@ -72,7 +72,7 @@ public enum CacheFileContentType { throw new AssertionError(this); } } - public Object deserialize(byte[] ba) { + public Object deserialize(final byte[] ba) { switch(this) { case JAVA_SERIALIZATION: return SerializationUtils.deserialize(ba);