Skip to content

Commit d65bfc5

Browse files
author
Mice Xia
committed
CLOUDSTACK-1174 rename field status-> state to comply with javabean convetion
1 parent 5a2cd68 commit d65bfc5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/com/cloud/storage/SnapshotVO.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class SnapshotVO implements Snapshot {
5959
@Expose
6060
@Column(name="status", updatable = true, nullable=false)
6161
@Enumerated(value=EnumType.STRING)
62-
private State status;
62+
private State state;
6363

6464
@Column(name="snapshot_type")
6565
short snapshotType;
@@ -117,7 +117,7 @@ public SnapshotVO(long dcId, long accountId, long domainId, Long volumeId, Long
117117
this.snapshotType = snapshotType;
118118
this.typeDescription = typeDescription;
119119
this.size = size;
120-
this.status = State.Creating;
120+
this.state = State.Creating;
121121
this.prevSnapshotId = 0;
122122
this.hypervisorType = hypervisorType;
123123
this.version = "2.2";
@@ -245,11 +245,11 @@ public Date getRemoved() {
245245

246246
@Override
247247
public State getState() {
248-
return status;
248+
return state;
249249
}
250250

251-
public void setStatus(State status) {
252-
this.status = status;
251+
public void setStatus(State state) {
252+
this.state = state;
253253
}
254254

255255
public String getBackupSnapshotId(){

0 commit comments

Comments
 (0)