Skip to content

Commit 112399c

Browse files
committed
Explicit case skip
1 parent 822383f commit 112399c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/org/apache/commons/io/RandomAccessFileMode.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,16 @@ public static RandomAccessFileMode valueOf(final OpenOption... openOption) {
108108
}
109109
break;
110110
default:
111-
// skip
111+
// explicit case skip (spotbugs)
112+
continue;
112113
}
113114
}
114115
}
115116
return bestFit;
116117
}
117118

118119
/**
119-
* Gets the enum value for the given mode, one of one of {@value #R}, {@value #RW}, {@value #RWD}, or {@value #RWS}.
120+
* Gets the {@link RandomAccessFileMode} value for the given mode, one of {@value #R}, {@value #RW}, {@value #RWD}, or {@value #RWS}.
120121
*
121122
* @param mode one of {@value #R}, {@value #RW}, {@value #RWD}, or {@value #RWS}.
122123
* @return A RandomAccessFileMode.

0 commit comments

Comments
 (0)