Skip to content

Commit

Permalink
Follow-up: use correct flag for range check of validateOnOpenKv.
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot-team committed Aug 22, 2023
1 parent f2a2eb5 commit b193936
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public BoxStoreBuilder validateOnOpenKv() {
* @param mode One of {@link ValidateOnOpenMode}.
*/
public BoxStoreBuilder validateOnOpenKv(short mode) {
if (mode < ValidateOnOpenModeKv.Regular || mode > ValidateOnOpenMode.Regular) {
if (mode < ValidateOnOpenModeKv.Regular || mode > ValidateOnOpenModeKv.Regular) {
throw new IllegalArgumentException("Must be one of ValidateOnOpenModeKv");
}
this.validateOnOpenModeKv = mode;
Expand Down

0 comments on commit b193936

Please sign in to comment.