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-io.git
commit 112399c7fec8a881f5b8180c8b3dac2822e9068c Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Nov 2 08:10:30 2024 -0400 Explicit case skip --- src/main/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 88c4859fc..e05f48e5e 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 enum RandomAccessFileMode { } break; default: - // skip + // explicit case skip (spotbugs) + continue; } } } @@ -116,7 +117,7 @@ public enum RandomAccessFileMode { } /** - * 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.