mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
表記ゆれ修正
This commit is contained in:
parent
8277258760
commit
e718e13ed9
|
@ -1,6 +1,6 @@
|
|||
package one.nem.lacerta.vcs;
|
||||
|
||||
public enum ActionTypes {
|
||||
public enum ActionType {
|
||||
|
||||
INSERT_PAGE("insert_page"),
|
||||
UPDATE_PAGE("update_page"),
|
||||
|
@ -21,7 +21,7 @@ public enum ActionTypes {
|
|||
|
||||
private final String value;
|
||||
|
||||
ActionTypes(String value) {
|
||||
ActionType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
|
@ -29,12 +29,12 @@ public enum ActionTypes {
|
|||
return value;
|
||||
}
|
||||
|
||||
public static ActionTypes fromValue(String value) {
|
||||
for (ActionTypes actionType : ActionTypes.values()) {
|
||||
public static ActionType fromValue(String value) {
|
||||
for (ActionType actionType : ActionType.values()) {
|
||||
if (actionType.getValue().equals(value)) {
|
||||
return actionType;
|
||||
}
|
||||
}
|
||||
return ActionTypes.OTHER;
|
||||
return ActionType.OTHER;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user