Skip to content

Commit

Permalink
Fix errorprone enum
Browse files Browse the repository at this point in the history
  • Loading branch information
agentgt committed Jan 6, 2025
1 parent f06a5e0 commit c009ae3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public Parser parser(Variables parameters) {
return new JSON5KeyValuesParser(JSON5KeyValuesParser.defaultOptions, arrayKeyOption, separator, rawNumber);
}

@SuppressWarnings("ImmutableEnumChecker")
enum Param implements Variables.Parameter {

ARRAY(ARRAY_KEY_PARAM, ARRAY_KEY_ALIAS), SEPARATOR(SEPARATOR_PARAM, SEPARATOR_PARAM_ALIAS),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import io.jstach.ezkv.kvs.KeyValuesServiceProvider.KeyValuesFilter;

@SuppressWarnings("EnumOrdinal")
enum DefaultKeyValuesFilter implements KeyValuesFilter {

GREP(KeyValuesResource.FILTER_GREP) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import io.jstach.ezkv.kvs.KeyValuesMedia.Parser;
import io.jstach.ezkv.kvs.KeyValuesServiceProvider.KeyValuesLoaderFinder;

@SuppressWarnings("EnumOrdinal")
enum DefaultKeyValuesLoaderFinder implements KeyValuesLoaderFinder {

CLASSPATH(KeyValuesResource.SCHEMA_CLASSPATH) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import io.jstach.ezkv.kvs.KeyValuesMedia.Formatter;
import io.jstach.ezkv.kvs.KeyValuesMedia.Parser;

@SuppressWarnings("EnumOrdinal")
enum DefaultKeyValuesMedia implements KeyValuesMedia, Parser, Formatter {

PROPERTIES(MEDIA_TYPE_PROPERTIES, FILE_EXT_PROPERTIES) {
Expand Down

0 comments on commit c009ae3

Please # to comment.