表記ゆれ修正

This commit is contained in:
r-ca 2024-01-14 12:05:53 +09:00
parent 8277258760
commit e718e13ed9
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -1,6 +1,6 @@
package one.nem.lacerta.vcs; package one.nem.lacerta.vcs;
public enum ActionTypes { public enum ActionType {
INSERT_PAGE("insert_page"), INSERT_PAGE("insert_page"),
UPDATE_PAGE("update_page"), UPDATE_PAGE("update_page"),
@ -21,7 +21,7 @@ public enum ActionTypes {
private final String value; private final String value;
ActionTypes(String value) { ActionType(String value) {
this.value = value; this.value = value;
} }
@ -29,12 +29,12 @@ public enum ActionTypes {
return value; return value;
} }
public static ActionTypes fromValue(String value) { public static ActionType fromValue(String value) {
for (ActionTypes actionType : ActionTypes.values()) { for (ActionType actionType : ActionType.values()) {
if (actionType.getValue().equals(value)) { if (actionType.getValue().equals(value)) {
return actionType; return actionType;
} }
} }
return ActionTypes.OTHER; return ActionType.OTHER;
} }
} }