summaryrefslogtreecommitdiffstats
path: root/nova-client/src
diff options
context:
space:
mode:
authorIsaac Manuel Raj <isaac.manuelraj@huawei.com>2019-04-12 15:53:33 +0530
committerIsaac Manuel Raj <isaac.manuelraj@huawei.com>2019-04-12 15:53:33 +0530
commit7c50cecacba8f3f6697a83ed65623b64473edae2 (patch)
tree47f1ac0a8b3dce1fc15052721eac8766af4d5149 /nova-client/src
parent334ba60fdb00880fdbaf3be7d82d6b97ed521ad7 (diff)
Code Enhancement (Sonar Fixes)
Sonar Issues Fixes Issue-ID: SO-1490 Change-Id: If791dd6e4f6eba4acc04c3c970e968b4d02c2feb Signed-off-by: Isaac Manuel Raj <isaac.manuelraj@huawei.com>
Diffstat (limited to 'nova-client/src')
-rw-r--r--nova-client/src/main/java/com/woorea/openstack/nova/api/FlavorsResource.java5
-rw-r--r--nova-client/src/main/java/com/woorea/openstack/nova/api/ImagesResource.java7
2 files changed, 5 insertions, 7 deletions
diff --git a/nova-client/src/main/java/com/woorea/openstack/nova/api/FlavorsResource.java b/nova-client/src/main/java/com/woorea/openstack/nova/api/FlavorsResource.java
index 82d5d8f..92b3b19 100644
--- a/nova-client/src/main/java/com/woorea/openstack/nova/api/FlavorsResource.java
+++ b/nova-client/src/main/java/com/woorea/openstack/nova/api/FlavorsResource.java
@@ -63,11 +63,11 @@ public class FlavorsResource {
public class Create extends OpenStackRequest<Flavor> {
- private Flavor flavor;
+
public Create(Flavor flavor) {
super(client, HttpMethod.POST, "/flavors", Entity.json(flavor), Flavor.class);
- this.flavor = flavor;
+
}
}
@@ -96,4 +96,3 @@ public class FlavorsResource {
return "/flavors/" + id;
}
}
-
diff --git a/nova-client/src/main/java/com/woorea/openstack/nova/api/ImagesResource.java b/nova-client/src/main/java/com/woorea/openstack/nova/api/ImagesResource.java
index a9af749..cca80e6 100644
--- a/nova-client/src/main/java/com/woorea/openstack/nova/api/ImagesResource.java
+++ b/nova-client/src/main/java/com/woorea/openstack/nova/api/ImagesResource.java
@@ -63,11 +63,11 @@ public class ImagesResource {
public class Create extends OpenStackRequest<Image> {
- private Image image;
+
public Create(Image image) {
super(client, HttpMethod.POST, "/images", Entity.json(image), Image.class);
- this.image = image;
+
}
}
@@ -82,7 +82,7 @@ public class ImagesResource {
public ShowMetadata(String id) {
super(client, HttpMethod.GET, "/images/" + id + "/metadata", null,
- Metadata.class);
+ Metadata.class);
}
}
@@ -97,4 +97,3 @@ public class ImagesResource {
return "/images/" + id;
}
}
-