From 112399c7fec8a881f5b8180c8b3dac2822e9068c Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 2 Nov 2024 08:10:30 -0400 Subject: [PATCH] Explicit case skip --- .../java/org/apache/commons/io/RandomAccessFileMode.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/io/RandomAccessFileMode.java b/src/main/java/org/apache/commons/io/RandomAccessFileMode.java index 88c4859fcc0..e05f48e5e51 100644 --- a/src/main/java/org/apache/commons/io/RandomAccessFileMode.java +++ b/src/main/java/org/apache/commons/io/RandomAccessFileMode.java @@ -108,7 +108,8 @@ public static RandomAccessFileMode valueOf(final OpenOption... openOption) { } break; default: - // skip + // explicit case skip (spotbugs) + continue; } } } @@ -116,7 +117,7 @@ public static RandomAccessFileMode valueOf(final OpenOption... openOption) { } /** - * Gets the enum value for the given mode, one of one of {@value #R}, {@value #RW}, {@value #RWD}, or {@value #RWS}. + * Gets the {@link RandomAccessFileMode} value for the given mode, one of {@value #R}, {@value #RW}, {@value #RWD}, or {@value #RWS}. * * @param mode one of {@value #R}, {@value #RW}, {@value #RWD}, or {@value #RWS}. * @return A RandomAccessFileMode.