From b08e02eb83f43c722e318595aefa965374afb289 Mon Sep 17 00:00:00 2001 From: Isaac Manuel Raj Date: Fri, 12 Apr 2019 16:09:18 +0530 Subject: Code Enhancement (Sonar Fixes) Sonar Issues Fixes Issue-ID: SO-1490 Change-Id: I8ebbaf62e919140b510b2c5a05eb2fbad821e1f9 Signed-off-by: Isaac Manuel Raj --- .../openstack/nova/api/extensions/HostsExtension.java | 18 +++++++++--------- .../nova/api/extensions/HypervisorsExtension.java | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'nova-client') diff --git a/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HostsExtension.java b/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HostsExtension.java index f5a0693..b9c6db4 100644 --- a/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HostsExtension.java +++ b/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HostsExtension.java @@ -24,17 +24,17 @@ import com.woorea.openstack.nova.model.Host; import com.woorea.openstack.nova.model.Hosts; public class HostsExtension { - + private final OpenStackClient CLIENT; - + public HostsExtension(OpenStackClient client) { CLIENT = client; } - + public List list() { return new List(); } - + public Show show(String id) { return new Show(id); } @@ -48,13 +48,13 @@ public class HostsExtension { } public class Show extends OpenStackRequest { - + public Show(String id) { super(CLIENT, HttpMethod.GET, new StringBuffer("/os-hosts/").append(id).toString(), null, Host.class); } - + } - - -} + + +} \ No newline at end of file diff --git a/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HypervisorsExtension.java b/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HypervisorsExtension.java index 9561601..8331f1f 100644 --- a/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HypervisorsExtension.java +++ b/nova-client/src/main/java/com/woorea/openstack/nova/api/extensions/HypervisorsExtension.java @@ -16,6 +16,6 @@ package com.woorea.openstack.nova.api.extensions; -public class HypervisorsExtension { +public interface HypervisorsExtension { -} +} \ No newline at end of file -- cgit 1.2.3-korg