From 7a0a44eac6167cfeff935c39f2c3f20d3a893c3e Mon Sep 17 00:00:00 2001 From: liamfallon Date: Wed, 4 Dec 2019 09:20:04 +0000 Subject: Minor changes for new Eclipse checkstyle checks The laest Eclipse checkstyle version 8.26.0 does more thorough checking and identified a number of small issues in the apex-pdp codebase. This review fixes those issues. Issue-ID: POLICY-1913 Change-Id: I30ba25e3e425c6d54c77f925e8da3ab841a8357c Signed-off-by: liamfallon --- .../onap/policy/apex/model/utilities/TreeMapUtils.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'model/utilities') diff --git a/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/TreeMapUtils.java b/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/TreeMapUtils.java index cb0f799a0..4f43e6c4d 100644 --- a/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/TreeMapUtils.java +++ b/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/TreeMapUtils.java @@ -5,15 +5,15 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * + * * SPDX-License-Identifier: Apache-2.0 * ============LICENSE_END========================================================= */ @@ -27,8 +27,8 @@ import java.util.Map.Entry; import java.util.NavigableMap; /** - * This class provides utility functions for tree maps. A function to find the nearest match in the - * tree map to an input string is provided. + * This class provides utility functions for tree maps. A function to find the nearest match in the tree map to an input + * string is provided. * * @author Liam Fallon (liam.fallon@ericsson.com) */ @@ -37,11 +37,12 @@ public abstract class TreeMapUtils { /** * This class is a utility class that can't be instantiated. */ - private TreeMapUtils() {} + private TreeMapUtils() { + // Private constructor to block subclassing + } /** - * Find the list of entries that matches a given word, for example "p" will match "put", - * "policy", and "push". + * Find the list of entries that matches a given word, for example "p" will match "put", "policy", and "push". * * @param the generic type for the value of the tree map * @param searchMap the map that the method operates on -- cgit 1.2.3-korg