summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--glance-model/src/main/java/com/woorea/openstack/glance/model/Image.java14
-rw-r--r--nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/CredentialsExtensionTest.java1
2 files changed, 8 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
diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/CredentialsExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/CredentialsExtensionTest.java
index 6a6c339..1f80ccd 100644
--- a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/CredentialsExtensionTest.java
+++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/CredentialsExtensionTest.java
@@ -33,6 +33,7 @@ public class CredentialsExtensionTest {
@Test
public void showCertificate() throws Exception {
credentialsExtension.showCertificate();
+
}
} \ No newline at end of file