diff options
author | Jim Hahn <jrh3@att.com> | 2021-06-29 16:48:07 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-06-29 17:08:10 -0400 |
commit | 749ee9da67d32ca8e33169607fcd7139632b29e7 (patch) | |
tree | c8d3fc059b663e6215bec8a347fe4cbb0117e686 /policy-endpoints | |
parent | fbaec67cb146add874f2aedeb5ba624f74e62d5e (diff) |
Address sonars in common
Fixed:
- use "var"
- duplicate code block
Issue-ID: POLICY-3284
Change-Id: I8cd7f2588353a2e7702c90d37d7b9f972634dca9
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'policy-endpoints')
-rw-r--r-- | policy-endpoints/src/main/java/org/onap/policy/common/endpoints/parameters/RestClientParameters.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |