From 052038c7a7e0b385462b3b653b7d06094d472df3 Mon Sep 17 00:00:00 2001 From: Dinh Danh Le Date: Mon, 27 Aug 2018 15:57:41 +0100 Subject: Fix checkstyle warning in tools & context packages Change-Id: I5b72c7a35d56296cd5053659a9d4c1e8f3b058be Signed-off-by: Dinh Danh Le Issue-ID: POLICY-1034 --- .../onap/policy/apex/tools/common/CliOptions.java | 3 ++- .../org/onap/policy/apex/tools/common/Console.java | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) (limited to 'tools/tools-common/src') diff --git a/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/CliOptions.java b/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/CliOptions.java index 277769be2..aea984fb1 100644 --- a/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/CliOptions.java +++ b/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/CliOptions.java @@ -88,7 +88,8 @@ public final class CliOptions { /** A type option defining what type is used for events with "-t" and "--type". */ public static final Option TYPE = Option.builder("t").hasArg().argName("TYPE").longOpt("type").desc( - "set the event type for generation, one of: stimuli (trigger events), response (action events), internal (events between states)") + "set the event type for generation, one of: stimuli (trigger events), response (action events)," + + " internal (events between states)") .build(); /** A server option with "-s" and "--server". */ diff --git a/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/Console.java b/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/Console.java index d76caa333..28337fdeb 100644 --- a/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/Console.java +++ b/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/Console.java @@ -150,16 +150,6 @@ public final class Console { types = type; } - /** - * Configures the console. Use the configuration flags in combination for the required configuration. For instance, - * to collect errors and warnings use CONFIG_COLLECT_ERRORS | CONFIG_COLLECT_WARNINGS. - * - * @param config the new configuration, overwrites the current configuration, 0 deactivates all settings - */ - public void configure(final int config) { - this.configuration = config; - } - /** * Sets the type to the given types, effectively deactivating all other types. * @@ -172,6 +162,16 @@ public final class Console { } } + /** + * Configures the console. Use the configuration flags in combination for the required configuration. For instance, + * to collect errors and warnings use CONFIG_COLLECT_ERRORS | CONFIG_COLLECT_WARNINGS. + * + * @param config the new configuration, overwrites the current configuration, 0 deactivates all settings + */ + public void configure(final int config) { + this.configuration = config; + } + /** * Prints an error message with message and objects if {@link #TYPE_ERROR} is set; and increases the error count. * Errors are collected (if configuration is set) and the error counter is increased regardless of the console error -- cgit 1.2.3-korg