You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mi...@apache.org on 2013/02/06 08:57:36 UTC

git commit: refs/heads/4.1 - CLOUDSTACK-1174 rename field status-> state to comply with javabean convetion

Updated Branches:
  refs/heads/4.1 4a578852a -> 9a9a4abf9


CLOUDSTACK-1174 rename field status-> state to comply with javabean convetion


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/9a9a4abf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/9a9a4abf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/9a9a4abf

Branch: refs/heads/4.1
Commit: 9a9a4abf9d86d807e22f4b85f09e05cc415fbe7c
Parents: 4a57885
Author: Mice Xia <mi...@tcloudcomputing.com>
Authored: Wed Feb 6 15:54:15 2013 +0800
Committer: Mice Xia <mi...@tcloudcomputing.com>
Committed: Wed Feb 6 15:56:47 2013 +0800

----------------------------------------------------------------------
 core/src/com/cloud/storage/SnapshotVO.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9a9a4abf/core/src/com/cloud/storage/SnapshotVO.java
----------------------------------------------------------------------
diff --git a/core/src/com/cloud/storage/SnapshotVO.java b/core/src/com/cloud/storage/SnapshotVO.java
index 413083e..0aa489b 100644
--- a/core/src/com/cloud/storage/SnapshotVO.java
+++ b/core/src/com/cloud/storage/SnapshotVO.java
@@ -59,7 +59,7 @@ public class SnapshotVO implements Snapshot {
     @Expose
     @Column(name="status", updatable = true, nullable=false)
     @Enumerated(value=EnumType.STRING)
-    private State status;
+    private State state;
 
     @Column(name="snapshot_type")
     short snapshotType;
@@ -117,7 +117,7 @@ public class SnapshotVO implements Snapshot {
         this.snapshotType = snapshotType;
         this.typeDescription = typeDescription;
         this.size = size;
-        this.status = State.Creating;
+        this.state = State.Creating;
         this.prevSnapshotId = 0;
         this.hypervisorType = hypervisorType;
         this.version = "2.2";
@@ -245,11 +245,11 @@ public class SnapshotVO implements Snapshot {
 
     @Override
     public State getState() {
-        return status;
+        return state;
     }
 
-	public void setStatus(State status) {
-        this.status = status;
+	public void setStatus(State state) {
+        this.state = state;
     }
 
     public String getBackupSnapshotId(){