From 749ee9da67d32ca8e33169607fcd7139632b29e7 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Tue, 29 Jun 2021 16:48:07 -0400 Subject: Address sonars in common Fixed: - use "var" - duplicate code block Issue-ID: POLICY-3284 Change-Id: I8cd7f2588353a2e7702c90d37d7b9f972634dca9 Signed-off-by: Jim Hahn --- .../onap/policy/common/endpoints/parameters/RestClientParameters.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'policy-endpoints/src/main/java/org/onap/policy/common') diff --git a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/parameters/RestClientParameters.java b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/parameters/RestClientParameters.java index e23b29e7..5d02e753 100644 --- a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/parameters/RestClientParameters.java +++ b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/parameters/RestClientParameters.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2021 Nordix Foundation. + * Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,7 +42,7 @@ public class RestClientParameters extends BusTopicParams implements ParameterGro @Override public BeanValidationResult validate() { - BeanValidationResult result = new BeanValidationResult(getClientName(), this); + var result = new BeanValidationResult(getClientName(), this); if (isHostnameInvalid()) { result.addResult("hostname", getHostname(), ValidationStatus.INVALID, MSG_IS_BLANK); } -- cgit 1.2.3-korg