Maor Lipchuk has uploaded a new change for review. Change subject: core: Adding static to SnapshotType enum ......................................................................
core: Adding static to SnapshotType enum Adding static to enum in Snapshot. also adding @override annotation on toString. Change-Id: Id9bd85616dbdd393ab508e95eb818c877ff6b23f Bug-Url: https://bugzilla.redhat.com/867339 Signed-off-by: Maor Lipchuk <mlipc...@redhat.com> --- M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/Snapshot.java 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/08/24108/1 diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/Snapshot.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/Snapshot.java index f599efe..534c06a 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/Snapshot.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/Snapshot.java @@ -271,7 +271,7 @@ BROKEN } - public enum SnapshotType { + public static enum SnapshotType { REGULAR("Regular"), ACTIVE("Active"), STATELESS("Stateless"), @@ -283,6 +283,7 @@ this.typeName = typeName; } + @Override public String toString() { return typeName; } -- To view, visit http://gerrit.ovirt.org/24108 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id9bd85616dbdd393ab508e95eb818c877ff6b23f Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Maor Lipchuk <mlipc...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches