summaryrefslogtreecommitdiffstats
path: root/glance-model
diff options
context:
space:
mode:
authorIsaac Manuel Raj <isaac.manuelraj@huawei.com>2019-04-15 12:46:33 +0530
committerSeshu Kumar M <seshu.kumar.m@huawei.com>2019-04-16 12:09:27 +0000
commita5c64f249297b8473c436b9cb995ce9339c88fdf (patch)
treea312f13193a7935a9b5cd120ebaa00138469fca8 /glance-model
parent84b3969c3661a62447ff406abf21ddc004ff673a (diff)
Change member variable to transient for serializable class
Made member variable to transient to enhance performance for serializable class. Issue-ID: SO-1490 Change-Id: Idc34bd665a90c97c2c291030f08e3049ddfff0b6 Signed-off-by: Isaac Manuel Raj <isaac.manuelraj@huawei.com>
Diffstat (limited to 'glance-model')
-rw-r--r--glance-model/src/main/java/com/woorea/openstack/glance/model/Image.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/glance-model/src/main/java/com/woorea/openstack/glance/model/Image.java b/glance-model/src/main/java/com/woorea/openstack/glance/model/Image.java
index aa7be87..924d274 100644
--- a/glance-model/src/main/java/com/woorea/openstack/glance/model/Image.java
+++ b/glance-model/src/main/java/com/woorea/openstack/glance/model/Image.java
@@ -76,7 +76,7 @@ public class Image implements Serializable {
@JsonProperty("protected")
private boolean isProtected;
- private Map<String, Object> properties;
+ private transient Map<String, Object> properties;
/**
* @return the id
@@ -346,10 +346,10 @@ public class Image implements Serializable {
@Override
public String toString() {
return String.format("Image [id=%s, uri=%s, name=%s, diskFormat=%s containerFormat=%s, size=%d, checksum=%s,"
- + " createdAt=%s, updatedAt=%s, deletedAt=%s, status=%s, isPublic=%s, minRam=%d, minDisk=%d, owner=%s,"
- + " isDeleted=%s, isProtected=%s, properties=%s]",
- id, uri, name, diskFormat, containerFormat, size, checksum,
- createdAt, updatedAt, deletedAt, status, isPublic, minRam, minDisk, owner,
- isDeleted, isProtected, properties);
+ + " createdAt=%s, updatedAt=%s, deletedAt=%s, status=%s, isPublic=%s, minRam=%d, minDisk=%d, owner=%s,"
+ + " isDeleted=%s, isProtected=%s, properties=%s]",
+ id, uri, name, diskFormat, containerFormat, size, checksum,
+ createdAt, updatedAt, deletedAt, status, isPublic, minRam, minDisk, owner,
+ isDeleted, isProtected, properties);
}
-}
+} \ No newline at end of file