tkalkirill commented on code in PR #4170:
URL: https://github.com/apache/ignite-3/pull/4170#discussion_r1701766370
##########
modules/raft/src/main/java/org/apache/ignite/raft/jraft/entity/EnumOutter.java:
##########
@@ -77,24 +74,17 @@ public static EntryType valueOf(int value) {
}
}
- /**
- * Returns the enumerated value from its ordinal.
- *
- * @param ordinal Ordinal of enumeration constant.
- * @throws IllegalArgumentException If no enumeration constant by
ordinal.
- */
- public static EntryType fromOrdinal(int ordinal) throws
IllegalArgumentException {
- if (ordinal < 0 || ordinal >= VALUES.length) {
- throw new IllegalArgumentException("No enum constant from
ordinal: " + ordinal);
- }
-
- return VALUES[ordinal];
- }
-
private final int value;
- private EntryType(int value) {
+ private final int transferableId;
Review Comment:
Ok
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]