From 1cdc024adf5070af52f816a484a6f8010d8e3858 Mon Sep 17 00:00:00 2001 From: David Waltermire Date: Sat, 19 Oct 2024 11:09:22 -0400 Subject: [PATCH] Code formatting. --- .../secauto/metaschema/core/metapath/MetapathExpression.java | 3 +-- .../model/xml/ExternalConstraintsModulePostProcessor.java | 4 ++++ .../ExternalConstraintsModulePostProcessorTest.java | 4 ++++ .../metaschema/databind/io/DefaultBoundLoaderTest.java | 4 ++++ .../secauto/metaschema/cli/util/LoggingValidationHandler.java | 3 ++- .../test/java/gov/nist/secauto/metaschema/cli/CLITest.java | 3 +-- 6 files changed, 16 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/MetapathExpression.java b/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/MetapathExpression.java index bac9e2253..f21642782 100644 --- a/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/MetapathExpression.java +++ b/core/src/main/java/gov/nist/secauto/metaschema/core/metapath/MetapathExpression.java @@ -117,8 +117,7 @@ public static MetapathExpression compile(@NonNull String path) { */ @NonNull public static MetapathExpression compile(@NonNull String path, @NonNull StaticContext context) { - @NonNull - MetapathExpression retval; + @NonNull MetapathExpression retval; if (".".equals(path)) { retval = CONTEXT_NODE; } else { diff --git a/core/src/main/java/gov/nist/secauto/metaschema/core/model/xml/ExternalConstraintsModulePostProcessor.java b/core/src/main/java/gov/nist/secauto/metaschema/core/model/xml/ExternalConstraintsModulePostProcessor.java index 57885abc6..86eb66bc6 100644 --- a/core/src/main/java/gov/nist/secauto/metaschema/core/model/xml/ExternalConstraintsModulePostProcessor.java +++ b/core/src/main/java/gov/nist/secauto/metaschema/core/model/xml/ExternalConstraintsModulePostProcessor.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: none + * SPDX-License-Identifier: CC0-1.0 + */ package gov.nist.secauto.metaschema.core.model.xml; diff --git a/core/src/test/java/gov/nist/secauto/metaschema/core/model/constraint/ExternalConstraintsModulePostProcessorTest.java b/core/src/test/java/gov/nist/secauto/metaschema/core/model/constraint/ExternalConstraintsModulePostProcessorTest.java index f4d3b7058..01bda57a4 100644 --- a/core/src/test/java/gov/nist/secauto/metaschema/core/model/constraint/ExternalConstraintsModulePostProcessorTest.java +++ b/core/src/test/java/gov/nist/secauto/metaschema/core/model/constraint/ExternalConstraintsModulePostProcessorTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: none + * SPDX-License-Identifier: CC0-1.0 + */ package gov.nist.secauto.metaschema.core.model.constraint; diff --git a/databind/src/test/java/gov/nist/secauto/metaschema/databind/io/DefaultBoundLoaderTest.java b/databind/src/test/java/gov/nist/secauto/metaschema/databind/io/DefaultBoundLoaderTest.java index 17a2e12d3..c73d72cbb 100644 --- a/databind/src/test/java/gov/nist/secauto/metaschema/databind/io/DefaultBoundLoaderTest.java +++ b/databind/src/test/java/gov/nist/secauto/metaschema/databind/io/DefaultBoundLoaderTest.java @@ -1,3 +1,7 @@ +/* + * SPDX-FileCopyrightText: none + * SPDX-License-Identifier: CC0-1.0 + */ package gov.nist.secauto.metaschema.databind.io; diff --git a/metaschema-cli/src/main/java/gov/nist/secauto/metaschema/cli/util/LoggingValidationHandler.java b/metaschema-cli/src/main/java/gov/nist/secauto/metaschema/cli/util/LoggingValidationHandler.java index 104a072e5..62deff73c 100644 --- a/metaschema-cli/src/main/java/gov/nist/secauto/metaschema/cli/util/LoggingValidationHandler.java +++ b/metaschema-cli/src/main/java/gov/nist/secauto/metaschema/cli/util/LoggingValidationHandler.java @@ -53,7 +53,8 @@ public static LoggingValidationHandler instance() { * Get a singleton instance of the logging validation handler. * * @param logExceptions - * {@code true} if this instance will log exceptions or {@code false} otherwise + * {@code true} if this instance will log exceptions or {@code false} + * otherwise * @return the instance */ @SuppressFBWarnings(value = "SING_SINGLETON_GETTER_NOT_SYNCHRONIZED", diff --git a/metaschema-cli/src/test/java/gov/nist/secauto/metaschema/cli/CLITest.java b/metaschema-cli/src/test/java/gov/nist/secauto/metaschema/cli/CLITest.java index 51f900f63..30b2a37fb 100644 --- a/metaschema-cli/src/test/java/gov/nist/secauto/metaschema/cli/CLITest.java +++ b/metaschema-cli/src/test/java/gov/nist/secauto/metaschema/cli/CLITest.java @@ -44,8 +44,7 @@ void evaluateResult(@NonNull ExitStatus status, @NonNull ExitCode expectedCode, } private static Stream providesValues() { - @SuppressWarnings("serial") - List values = new LinkedList<>() { + @SuppressWarnings("serial") List values = new LinkedList<>() { { add(Arguments.of(new String[] {}, ExitCode.INVALID_COMMAND, NO_EXCEPTION_CLASS));