From 6f27d6673f0a827216fabc0a4531f429d753de71 Mon Sep 17 00:00:00 2001 From: David Waltermire Date: Sat, 2 Nov 2024 15:37:25 -0400 Subject: [PATCH] Minor refactoring. --- .../metaschema/cli/processor/CLIProcessor.java | 9 +++------ .../core/model/AbstractGlobalDefinition.java | 6 ++++++ .../core/model/AbstractInlineAssemblyDefinition.java | 5 +++++ .../core/model/AbstractInlineFieldDefinition.java | 5 +++++ .../metaschema/core/model/IAssemblyDefinition.java | 6 ++++++ .../secauto/metaschema/core/model/IDefinition.java | 8 ++++++++ .../core/model/IFeatureDefinitionInstanceInlined.java | 11 ++++++----- .../metaschema/core/model/IFieldDefinition.java | 7 +++++++ .../modules/sarif/SarifValidationHandler.java | 3 +-- .../secauto/metaschema/databind/IBindingContext.java | 3 +-- .../model/IBoundInstanceModelFieldScalar.java | 5 +++++ 11 files changed, 53 insertions(+), 15 deletions(-) diff --git a/cli-processor/src/main/java/gov/nist/secauto/metaschema/cli/processor/CLIProcessor.java b/cli-processor/src/main/java/gov/nist/secauto/metaschema/cli/processor/CLIProcessor.java index 104fb9018..bfbcc84fa 100644 --- a/cli-processor/src/main/java/gov/nist/secauto/metaschema/cli/processor/CLIProcessor.java +++ b/cli-processor/src/main/java/gov/nist/secauto/metaschema/cli/processor/CLIProcessor.java @@ -215,8 +215,7 @@ public static void handleQuiet() { } protected void showVersion() { - @SuppressWarnings("resource") - PrintStream out = AnsiConsole.out(); // NOPMD - not owner + @SuppressWarnings("resource") PrintStream out = AnsiConsole.out(); // NOPMD - not owner getVersionInfos().values().stream().forEach(info -> { out.println(ansi() .bold().a(info.getName()).boldOff() @@ -254,8 +253,7 @@ public class CallingContext { @SuppressFBWarnings(value = "CT_CONSTRUCTOR_THROW", justification = "Use of final fields") public CallingContext(@NonNull List args) { - @SuppressWarnings("PMD.LooseCoupling") - LinkedList calledCommands = new LinkedList<>(); + @SuppressWarnings("PMD.LooseCoupling") LinkedList calledCommands = new LinkedList<>(); List