From 04c236567737c965545f64c9542a7d75ed6f9046 Mon Sep 17 00:00:00 2001 From: vasraz Date: Sat, 27 Mar 2021 22:58:29 +0000 Subject: Reformat common Signed-off-by: Vasyl Razinkov Issue-ID: SDC-3449 Change-Id: Ifa1412b8a614f7cdb4c52f05d811ab5e9cf20d83 --- .../src/main/java/org/onap/config/api/Config.java | 1 - .../src/main/java/org/onap/config/api/Configuration.java | 2 -- .../src/main/java/org/onap/config/api/ConfigurationLoader.java | 3 --- .../src/main/java/org/onap/config/api/ConfigurationManager.java | 1 - .../src/main/java/org/onap/config/api/Hint.java | 5 ----- 5 files changed, 12 deletions(-) (limited to 'common/onap-common-configuration-management/onap-configuration-management-api/src/main') diff --git a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Config.java b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Config.java index 73ddc5d273..8c14e23cf7 100644 --- a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Config.java +++ b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Config.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.onap.config.api; import java.lang.annotation.ElementType; diff --git a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Configuration.java b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Configuration.java index d5b5a10bcf..81a629af1e 100644 --- a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Configuration.java +++ b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Configuration.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.onap.config.api; import java.util.Arrays; @@ -31,7 +30,6 @@ public interface Configuration { * @param id tenant id; may be null in which case a default will be used. */ static void setTenantId(String id) { - if (id != null && id.trim().length() > 0) { TENANT.set(id); } else { diff --git a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationLoader.java b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationLoader.java index 78f8b23024..572c2264a0 100644 --- a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationLoader.java +++ b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationLoader.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.onap.config.api; import java.util.Iterator; @@ -32,7 +31,6 @@ class ConfigurationLoader { } static Configuration load() { - ServiceLoader loader = ServiceLoader.load(ConfigurationManager.class); Iterator configManagers = loader.iterator(); while (configManagers.hasNext()) { @@ -42,7 +40,6 @@ class ConfigurationLoader { // this provider loading has failed, let's try next one } } - throw new IllegalStateException("No binding found for configuration service"); } } diff --git a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationManager.java b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationManager.java index 9f0f8b7113..76193a4642 100644 --- a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationManager.java +++ b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/ConfigurationManager.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.onap.config.api; import java.util.Collection; diff --git a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Hint.java b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Hint.java index 373b643ef2..0f6d6f9f67 100644 --- a/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Hint.java +++ b/common/onap-common-configuration-management/onap-configuration-management-api/src/main/java/org/onap/config/api/Hint.java @@ -13,13 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package org.onap.config.api; public enum Hint { - DEFAULT(0b0), LATEST_LOOKUP(0b1), EXTERNAL_LOOKUP(0b10), NODE_SPECIFIC(0b100); - private final int lookupHint; Hint(int hint) { @@ -29,6 +26,4 @@ public enum Hint { public int value() { return lookupHint; } - - } -- cgit 1.2.3-korg