Skip to content

Commit

Permalink
fix: Suppress EnumOrdinal warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Mar 28, 2024
1 parent afff24b commit d35478c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ protected void handleNormalizedLoggingCall(
}
}

@SuppressWarnings("EnumOrdinal")
private boolean isArcLogLevelAtLeast(final LogLevel level) {
return level != LogLevel.none && Log.level.ordinal() <= level.ordinal();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public E getValue() {
return this.value;
}

@SuppressWarnings("EnumOrdinal")
@Override
public @Nullable EnumRankNode<E> getPrevious() {
final var constants = this.value.getDeclaringClass().getEnumConstants();
Expand Down

0 comments on commit d35478c

Please sign in to comment.