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 --- .../policy/apex/client/editor/rest/handling/RestUtils.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'client/client-editor/src') diff --git a/client/client-editor/src/main/java/org/onap/policy/apex/client/editor/rest/handling/RestUtils.java b/client/client-editor/src/main/java/org/onap/policy/apex/client/editor/rest/handling/RestUtils.java index 5cb7af840..738f33cb1 100644 --- a/client/client-editor/src/main/java/org/onap/policy/apex/client/editor/rest/handling/RestUtils.java +++ b/client/client-editor/src/main/java/org/onap/policy/apex/client/editor/rest/handling/RestUtils.java @@ -50,7 +50,7 @@ import org.onap.policy.apex.model.basicmodel.concepts.AxConcept; */ public abstract class RestUtils { // Regular expressions for checking input types - private static final String XML_INPUT_TYPE_REGEXP = "^\\s*<\\?xml.*>\\s*"; //starts with + private static final String XML_INPUT_TYPE_REGEXP = "^\\s*<\\?xml.*>\\s*"; // starts with /** * starts with some kind of bracket [ or ( or {, then has something, then has bracket. */ @@ -59,7 +59,9 @@ public abstract class RestUtils { /** * Constructor, block inheritance. */ - private RestUtils() {} + private RestUtils() { + // Private constructor to block subclassing + } /** * HTTP POST requests can't send nulls so we interpret blanks as nulls. @@ -103,8 +105,7 @@ public abstract class RestUtils { } /** - * Apex HTTP PUT requests send simple single level JSON strings, this method reads those strings - * into a map. + * Apex HTTP PUT requests send simple single level JSON strings, this method reads those strings into a map. * * @param jsonString the incoming JSON string * @return a map of the JSON strings @@ -123,8 +124,7 @@ public abstract class RestUtils { } /** - * Apex HTTP PUT requests send simple single level JSON strings, this method reads those strings - * into a map. + * Apex HTTP PUT requests send simple single level JSON strings, this method reads those strings into a map. * * @param the generic type * @param jsonString the incoming JSON string -- cgit 1.2.3-korg