summaryrefslogtreecommitdiffstats
path: root/nova-client/src/main/java
diff options
context:
space:
mode:
authorIsaac Manuel Raj <isaac.manuelraj@huawei.com>2019-04-12 16:10:03 +0530
committerIsaac Manuel Raj <isaac.manuelraj@huawei.com>2019-04-16 13:34:27 +0000
commita35b38d22d17738f2fc54f5fe6f8e74d72c083d7 (patch)
tree3cd627bad9039eab598b5a6731daf677ca43ee78 /nova-client/src/main/java
parent226c37657808fa22336940e9be49147809f41710 (diff)
Code Enhancement (Sonar Fixes)
Sonar Issues Fixes Issue-ID: SO-1490 Change-Id: I8e26f5fadcb24ab7257a1871b362b297949b5b5b Signed-off-by: Isaac Manuel Raj <isaac.manuelraj@huawei.com>
Diffstat (limited to 'nova-client/src/main/java')
-rw-r--r--nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/KeyPairsExtension.java12
-rw-r--r--nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/NetworksExtension.java10
2 files changed, 11 insertions, 11 deletions
diff --git a/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/KeyPairsExtension.java b/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/KeyPairsExtension.java
index a8a39b6..4ebbe21 100644
--- a/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/KeyPairsExtension.java
+++ b/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/KeyPairsExtension.java
@@ -25,13 +25,13 @@ import com.woorea.openstack.nova.model.KeyPair;
import com.woorea.openstack.nova.model.KeyPairs;
public class KeyPairsExtension {
-
+
private final OpenStackClient CLIENT;
-
+
public KeyPairsExtension(OpenStackClient client) {
CLIENT = client;
}
-
+
public List list() {
return new List();
}
@@ -62,7 +62,7 @@ public class KeyPairsExtension {
public class Delete extends OpenStackRequest<Void> {
- private String name;
+
public Delete(String name) {
super(CLIENT, HttpMethod.DELETE, new StringBuilder("/os-keypairs/").append(name).toString(), null, Void.class);
@@ -77,5 +77,5 @@ public class KeyPairsExtension {
}
}
-
-}
+
+} \ No newline at end of file
diff --git a/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/NetworksExtension.java b/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/NetworksExtension.java
index 7570254..d920a06 100644
--- a/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/NetworksExtension.java
+++ b/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/NetworksExtension.java
@@ -25,13 +25,13 @@ import com.woorea.openstack.nova.model.Network;
import com.woorea.openstack.nova.model.Networks;
public class NetworksExtension {
-
+
private final OpenStackClient CLIENT;
-
+
public NetworksExtension(OpenStackClient client) {
CLIENT = client;
}
-
+
public List list() {
return new List();
}
@@ -93,6 +93,6 @@ public class NetworksExtension {
}
-
-}
+
+} \ No newline at end of file