From c0ca5ba9649fb7c1b09ecad9fb781dbf9074ae3f Mon Sep 17 00:00:00 2001 From: selenaxiao-nist <142448406+selenaxiao-nist@users.noreply.github.com> Date: Fri, 4 Sep 2026 10:27:09 -0400 Subject: [PATCH] Commit mvn install reformatting to prevent git status clutter --- .../control/catalog/IControlContainer.java | 9 ++-- .../control/catalog/IGroupContainer.java | 3 +- .../resolver/ProfileResolutionException.java | 4 +- .../lib/profile/resolver/ProfileResolver.java | 6 ++- .../profile/resolver/alter/AddVisitor.java | 21 ++++---- .../profile/resolver/alter/RemoveVisitor.java | 14 +++--- .../merge/FlatteningStructuringVisitor.java | 6 ++- .../policy/AbstractCustomReferencePolicy.java | 43 ++++++++++------- .../policy/ICustomReferencePolicyHandler.java | 21 ++++---- .../resolver/policy/IIdentifierParser.java | 3 +- .../resolver/policy/IReferenceVisitor.java | 26 ++++++---- .../policy/ReferenceCountingVisitor.java | 15 ++++-- .../selection/ControlSelectionVisitor.java | 19 ++++---- .../DefaultControlSelectionFilter.java | 12 +++-- .../selection/FilterNonSelectedVisitor.java | 6 ++- .../resolver/selection/IControlFilter.java | 25 +++++----- .../selection/IControlSelectionFilter.java | 11 +++-- .../support/AbstractCatalogEntityVisitor.java | 48 +++++++++++-------- .../support/AbstractCatalogVisitor.java | 12 +++-- .../resolver/support/AbstractEntityItem.java | 3 +- .../resolver/support/BasicIndexer.java | 16 ++++--- .../resolver/support/ICatalogVisitor.java | 14 +++--- .../profile/resolver/support/IEntityItem.java | 16 ++++--- .../profile/resolver/support/IIndexer.java | 30 +++++++----- .../oscal/java/MetaschemaVisitorTest.java | 27 +++++++---- .../oscal/java/OscalBindingContextTest.java | 3 +- .../DefaultControlSelectionFilterTest.java | 3 +- 27 files changed, 252 insertions(+), 164 deletions(-) diff --git a/src/main/java/gov/nist/secauto/oscal/lib/model/control/catalog/IControlContainer.java b/src/main/java/gov/nist/secauto/oscal/lib/model/control/catalog/IControlContainer.java index d554ab67..35cd1c44 100644 --- a/src/main/java/gov/nist/secauto/oscal/lib/model/control/catalog/IControlContainer.java +++ b/src/main/java/gov/nist/secauto/oscal/lib/model/control/catalog/IControlContainer.java @@ -48,7 +48,8 @@ public interface IControlContainer { boolean addControl(@NonNull Control item); /** - * Remove the first matching {@link Control} item from the underlying collection. + * Remove the first matching {@link Control} item from the underlying + * collection. * * @param item * the item to remove @@ -68,7 +69,8 @@ public interface IControlContainer { boolean addParam(@NonNull Parameter item); /** - * Remove the first matching {@link Parameter} item from the underlying collection. + * Remove the first matching {@link Parameter} item from the underlying + * collection. * * @param item * the item to remove @@ -77,7 +79,8 @@ public interface IControlContainer { boolean removeParam(@NonNull Parameter item); /** - * Get the parameter identifiers referenced in the object's context, but not by their child objects. + * Get the parameter identifiers referenced in the object's context, but not by + * their child objects. * * @return a stream of identifiers */ diff --git a/src/main/java/gov/nist/secauto/oscal/lib/model/control/catalog/IGroupContainer.java b/src/main/java/gov/nist/secauto/oscal/lib/model/control/catalog/IGroupContainer.java index 6162c613..8f9f7ed7 100644 --- a/src/main/java/gov/nist/secauto/oscal/lib/model/control/catalog/IGroupContainer.java +++ b/src/main/java/gov/nist/secauto/oscal/lib/model/control/catalog/IGroupContainer.java @@ -46,7 +46,8 @@ public interface IGroupContainer extends IControlContainer { boolean addGroup(@NonNull CatalogGroup item); /** - * Remove the first matching {@link CatalogGroup} item from the underlying collection. + * Remove the first matching {@link CatalogGroup} item from the underlying + * collection. * * @param item * the item to remove diff --git a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolutionException.java b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolutionException.java index 06694c1f..55e75870 100644 --- a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolutionException.java +++ b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolutionException.java @@ -47,8 +47,8 @@ public ProfileResolutionException(String message) { } /** - * Create a new profile resolution exception with the provided {@code message} based on the provided - * {@code cause}. + * Create a new profile resolution exception with the provided {@code message} + * based on the provided {@code cause}. * * @param message * a description of the error that occurred diff --git a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolver.java b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolver.java index 33766311..b9c7ce0f 100644 --- a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolver.java +++ b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolver.java @@ -115,7 +115,8 @@ public enum StructuringDirective { private DynamicContext dynamicContext; /** - * Gets the configured loader or creates a new default loader if no loader was configured. + * Gets the configured loader or creates a new default loader if no loader was + * configured. * * @return the bound loader */ @@ -340,7 +341,8 @@ protected IIndexer resolveImport( IDocumentNodeItem document = getDynamicContext().getDocumentLoader().loadAsNodeItem(source); IDocumentNodeItem importedCatalog = resolve(document, importHistory); - // Create a defensive deep copy of the document and associated values, since we will be making + // Create a defensive deep copy of the document and associated values, since we + // will be making // changes to the data. try { importedCatalog = DefaultNodeItemFactory.instance().newDocumentNodeItem( diff --git a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/alter/AddVisitor.java b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/alter/AddVisitor.java index 6fdd7015..4bb14ca8 100644 --- a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/alter/AddVisitor.java +++ b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/alter/AddVisitor.java @@ -95,8 +95,8 @@ public enum TargetType { * * @param clazz * the class to identify the target type for - * @return the associated target type or {@code null} if the class is not associated with a target - * type + * @return the associated target type or {@code null} if the class is not + * associated with a target type */ @Nullable public static TargetType forClass(@NonNull Class> clazz) { @@ -114,8 +114,8 @@ public static TargetType forClass(@NonNull Class> clazz) { * * @param name * the field name to identify the target type for - * @return the associated target type or {@code null} if the name is not associated with a target - * type + * @return the associated target type or {@code null} if the name is not + * associated with a target type */ @Nullable public static TargetType forFieldName(@Nullable String name) { @@ -168,7 +168,8 @@ public enum Position { * * @param name * the name to identify the position for - * @return the associated position or {@code null} if the name is not associated with a position + * @return the associated position or {@code null} if the name is not associated + * with a position */ @Nullable public static Position forName(@Nullable String name) { @@ -257,8 +258,8 @@ public Boolean visitGroup(CatalogGroup group, Context context) { *
- * The {@code reference} object is provided to allow for context sensitive item type tailoring. + * The {@code reference} object is provided to allow for context sensitive item + * type tailoring. * * @param reference * the reference object @@ -79,7 +80,8 @@ public IIdentifierParser getIdentifierParser() { * @param item * the referenced item * @param visitorContext - * the reference visitor state, which can be used for further processing + * the reference visitor state, which can be used for further + * processing * @return {@code true} if the hit was handled or {@code false} otherwise * @throws ProfileResolutionEvaluationException * if there was an error handing the index hit @@ -149,7 +151,8 @@ protected void handleUnselected( // NOPMD noop default * @param item * the referenced item * @param visitorContext - * the reference visitor state, which can be used for further processing + * the reference visitor state, which can be used for further + * processing * @throws ProfileResolutionEvaluationException * if there was an error handing the index hit */ @@ -162,8 +165,8 @@ protected void handleSelected( // NOPMD noop default } /** - * Handle an index miss for a reference. This occurs when the referenced item was not found in the - * index. + * Handle an index miss for a reference. This occurs when the referenced item + * was not found in the index. *
* Subclasses can override this method to perform extra processing. * @@ -176,8 +179,10 @@ protected void handleSelected( // NOPMD noop default * @param identifier * the parsed identifier * @param visitorContext - * the reference visitor state, which can be used for further processing - * @return {@code true} if the reference is handled by this method or {@code false} otherwise + * the reference visitor state, which can be used for further + * processing + * @return {@code true} if the reference is handled by this method or + * {@code false} otherwise * @throws ProfileResolutionEvaluationException * if there was an error handing the index miss */ @@ -192,8 +197,9 @@ protected boolean handleIndexMiss( } /** - * Handle the case where the identifier was not a syntax match for an expected identifier. This can - * occur when the reference is malformed, using an unrecognized syntax. + * Handle the case where the identifier was not a syntax match for an expected + * identifier. This can occur when the reference is malformed, using an + * unrecognized syntax. *
* Subclasses can override this method to perform extra processing.
*
@@ -202,8 +208,10 @@ protected boolean handleIndexMiss(
* @param reference
* the identifier reference object generating the hit
* @param visitorContext
- * the reference visitor state, which can be used for further processing
- * @return {@code true} if the reference is handled by this method or {@code false} otherwise
+ * the reference visitor state, which can be used for further
+ * processing
+ * @return {@code true} if the reference is handled by this method or
+ * {@code false} otherwise
* @throws ProfileResolutionEvaluationException
* if there was an error handing the index miss due to a non match
*/
@@ -222,7 +230,8 @@ public boolean handleReference(
@NonNull ReferenceCountingVisitor.Context visitorContext) {
String referenceText = getReferenceText(type);
- // if the reference text does not exist, ignore the reference; otherwise, handle it.
+ // if the reference text does not exist, ignore the reference; otherwise, handle
+ // it.
return referenceText == null
|| handleIdentifier(contextItem, type, getIdentifierParser().parse(referenceText), visitorContext);
}
@@ -237,8 +246,10 @@ public boolean handleReference(
* @param identifier
* the identifier
* @param visitorContext
- * the reference visitor state, which can be used for further processing
- * @return {@code true} if the reference is handled by this method or {@code false} otherwise
+ * the reference visitor state, which can be used for further
+ * processing
+ * @return {@code true} if the reference is handled by this method or
+ * {@code false} otherwise
* @throws ProfileResolutionEvaluationException
* if there was an error handing the reference
*/
diff --git a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/policy/ICustomReferencePolicyHandler.java b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/policy/ICustomReferencePolicyHandler.java
index 833af774..b9c73c97 100644
--- a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/policy/ICustomReferencePolicyHandler.java
+++ b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/policy/ICustomReferencePolicyHandler.java
@@ -48,8 +48,8 @@ public boolean handleIndexMiss(
};
/**
- * A callback used to handle the case where an identifier could not be parsed from the reference
- * text.
+ * A callback used to handle the case where an identifier could not be parsed
+ * from the reference text.
*
* @param policy
* the reference policy for this reference
@@ -57,7 +57,8 @@ public boolean handleIndexMiss(
* the reference object
* @param visitor
* the reference visitor used to resolve referenced objects
- * @return {@code true} if the reference is considered handled, or {@code false} otherwise
+ * @return {@code true} if the reference is considered handled, or {@code false}
+ * otherwise
*/
default boolean handleIdentifierNonMatch(
@NonNull ICustomReferencePolicy
- * For each {@link CatalogGroup}, {@link Control}, and {@link ControlPart}, determine if that object
- * is {@link SelectionStatus#SELECTED} or {@link SelectionStatus#UNSELECTED}.
+ * For each {@link CatalogGroup}, {@link Control}, and {@link ControlPart},
+ * determine if that object is {@link SelectionStatus#SELECTED} or
+ * {@link SelectionStatus#UNSELECTED}.
*
- * A {@link Control} is {@link SelectionStatus#SELECTED} if it matches the configured
- * {@link IControlFilter}, otherwise it is {@link SelectionStatus#UNSELECTED}.
+ * A {@link Control} is {@link SelectionStatus#SELECTED} if it matches the
+ * configured {@link IControlFilter}, otherwise it is
+ * {@link SelectionStatus#UNSELECTED}.
*
* A {@link CatalogGroup} is {@link SelectionStatus#SELECTED} if it contains a
* {@link SelectionStatus#SELECTED} descendant {@link Control}, otherwise it is
* {@link SelectionStatus#UNSELECTED}.
*
- * A {@link ControlPart} is {@link SelectionStatus#SELECTED} if its containing control is
- * {@link SelectionStatus#SELECTED}.
+ * A {@link ControlPart} is {@link SelectionStatus#SELECTED} if its containing
+ * control is {@link SelectionStatus#SELECTED}.
*
- * All other indexed nodes will have the {@link SelectionStatus#UNKNOWN}, since these nodes require
- * reference counting to determine if they are to be kept or not.
+ * All other indexed nodes will have the {@link SelectionStatus#UNKNOWN}, since
+ * these nodes require reference counting to determine if they are to be kept or
+ * not.
*/
public class ControlSelectionVisitor
extends AbstractIndexingVisitor
- * This implementation is stateless. The {@code T} parameter can be used to convey state as needed.
+ * This implementation is stateless. The {@code T} parameter can be used to
+ * convey state as needed.
*
* @param
- * Can be overridden by classes extending this interface to support processing of the visited
- * object.
+ * Can be overridden by classes extending this interface to support processing
+ * of the visited object.
*
* @param item
* the Metapath item for the parameter
@@ -195,8 +197,8 @@ protected R visitParameter(
/**
* Called when visiting a part.
*
- * Can be overridden by classes extending this interface to support processing of the visited
- * object.
+ * Can be overridden by classes extending this interface to support processing
+ * of the visited object.
*
* @param item
* the Metapath item for the part
@@ -247,11 +249,12 @@ protected void visitMetadata(@NonNull IRootAssemblyNodeItem rootItem, T state) {
/**
* Called when visiting a role in the "metadata" section of an OSCAL document.
*
- * Can be overridden by classes extending this interface to support processing of the visited
- * object.
+ * Can be overridden by classes extending this interface to support processing
+ * of the visited object.
*
* @param item
- * the role Metaschema node item which is a child of the "metadata" node
+ * the role Metaschema node item which is a child of the "metadata"
+ * node
* @param metadataItem
* the "metadata" Metaschema node item containing the role
* @param state
@@ -265,13 +268,15 @@ protected void visitRole( // NOPMD noop default
}
/**
- * Called when visiting a location in the "metadata" section of an OSCAL document.
+ * Called when visiting a location in the "metadata" section of an OSCAL
+ * document.
*
- * Can be overridden by classes extending this interface to support processing of the visited
- * object.
+ * Can be overridden by classes extending this interface to support processing
+ * of the visited object.
*
* @param item
- * the location Metaschema node item which is a child of the "metadata" node
+ * the location Metaschema node item which is a child of the "metadata"
+ * node
* @param metadataItem
* the "metadata" Metaschema node item containing the location
* @param state
@@ -287,11 +292,12 @@ protected void visitLocation( // NOPMD noop default
/**
* Called when visiting a party in the "metadata" section of an OSCAL document.
*
- * Can be overridden by classes extending this interface to support processing of the visited
- * object.
+ * Can be overridden by classes extending this interface to support processing
+ * of the visited object.
*
* @param item
- * the party Metaschema node item which is a child of the "metadata" node
+ * the party Metaschema node item which is a child of the "metadata"
+ * node
* @param metadataItem
* the "metadata" Metaschema node item containing the party
* @param state
@@ -325,13 +331,15 @@ protected void visitBackMatter(@NonNull IRootAssemblyNodeItem rootItem, T state)
}
/**
- * Called when visiting a resource in the "back-matter" section of an OSCAL document.
+ * Called when visiting a resource in the "back-matter" section of an OSCAL
+ * document.
*
- * Can be overridden by classes extending this interface to support processing of the visited
- * object.
+ * Can be overridden by classes extending this interface to support processing
+ * of the visited object.
*
* @param item
- * the resource Metaschema node item which is a child of the "metadata" node
+ * the resource Metaschema node item which is a child of the "metadata"
+ * node
* @param backMatterItem
* the resource Metaschema node item containing the party
* @param state
diff --git a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/AbstractCatalogVisitor.java b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/AbstractCatalogVisitor.java
index 696d8fa3..d004f603 100644
--- a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/AbstractCatalogVisitor.java
+++ b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/AbstractCatalogVisitor.java
@@ -36,9 +36,11 @@
* Used to visit a catalog containing groups and controls.
*
* @param
- * This method can be overloaded to support applying additional data to the returned builder.
+ * This method can be overloaded to support applying additional data to the
+ * returned builder.
*
- * When working with identifiers that are case insensitve, it is important to ensure that the
- * identifiers are normalized to lower case.
+ * When working with identifiers that are case insensitve, it is important to
+ * ensure that the identifiers are normalized to lower case.
*
* @param item
* the Metapath node to associate with the entity
diff --git a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/ICatalogVisitor.java b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/ICatalogVisitor.java
index 96842848..c5409e7f 100644
--- a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/ICatalogVisitor.java
+++ b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/ICatalogVisitor.java
@@ -34,17 +34,19 @@
* Used to visit a catalog containing groups and controls.
*
* @param
- * Can be overridden by classes extending this interface to support processing of the visited
- * object.
+ * Can be overridden by classes extending this interface to support processing
+ * of the visited object.
*
* @param item
* the Metapath item for the group
@@ -62,8 +64,8 @@ default R visitGroup(@NonNull IRequiredValueModelNodeItem item, R childResult, T
/**
* Called when visiting a control.
*
- * Can be overridden by classes extending this interface to support processing of the visited
- * object.
+ * Can be overridden by classes extending this interface to support processing
+ * of the visited object.
*
* @param item
* the Metapath item for the control
diff --git a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/IEntityItem.java b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/IEntityItem.java
index afeacf98..146e4b48 100644
--- a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/IEntityItem.java
+++ b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/IEntityItem.java
@@ -58,13 +58,14 @@ public boolean isUuid() {
/**
* Get the identifier originally assigned to this entity.
*
- * If the identifier value was reassigned, the return value of this method will be different than
- * value returned by {@link #getIdentifier()}. In such cases, a call to
- * {@link #isIdentifierReassigned()} is expected to return {@code true}.
+ * If the identifier value was reassigned, the return value of this method will
+ * be different than value returned by {@link #getIdentifier()}. In such cases,
+ * a call to {@link #isIdentifierReassigned()} is expected to return
+ * {@code true}.
*
- * If the value was not reassigned, the return value of this method will be the same value returned
- * by {@link #getIdentifier()}. In this case, {@link #isIdentifierReassigned()} is expected to
- * return {@code false}.
+ * If the value was not reassigned, the return value of this method will be the
+ * same value returned by {@link #getIdentifier()}. In this case,
+ * {@link #isIdentifierReassigned()} is expected to return {@code false}.
*
* @return the original identifier value before reassignment
*/
@@ -82,7 +83,8 @@ public boolean isUuid() {
/**
* Determine if the identifier was reassigned.
*
- * @return {@code true} if the identifier was reassigned, or {@code false} otherwise
+ * @return {@code true} if the identifier was reassigned, or {@code false}
+ * otherwise
*/
boolean isIdentifierReassigned();
diff --git a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/IIndexer.java b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/IIndexer.java
index f91ed7e9..7fac07e2 100644
--- a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/IIndexer.java
+++ b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/support/IIndexer.java
@@ -76,8 +76,8 @@ static boolean isReferencedEntity(@NonNull IEntityItem entity) {
}
/**
- * Keep entities that have a reference count greater than zero or are required to be kept based on
- * the "keep"="always property.
+ * Keep entities that have a reference count greater than zero or are required
+ * to be kept based on the "keep"="always property.
*
* @param entities
* the entity items to filter
@@ -88,8 +88,8 @@ static Stream
* Will normalize the case of a UUID-based identifier.
*
@@ -209,7 +213,8 @@ default IEntityItem getEntity(@NonNull IEntityItem.ItemType itemType, @NonNull S
}
/**
- * Lookup an item of the given {@code itemType} having the given {@code identifier}.
+ * Lookup an item of the given {@code itemType} having the given
+ * {@code identifier}.
*
* Will normalize the case of a UUID-based the identifier when requested.
*
@@ -218,7 +223,8 @@ default IEntityItem getEntity(@NonNull IEntityItem.ItemType itemType, @NonNull S
* @param identifier
* the identifier to lookup
* @param normalize
- * {@code true} if the identifier case should be normalized or {@code false} otherwise
+ * {@code true} if the identifier case should be normalized or
+ * {@code false} otherwise
* @return the matching item or {@code null} if no match was found
*/
@Nullable
diff --git a/src/test/java/gov/nist/secauto/oscal/java/MetaschemaVisitorTest.java b/src/test/java/gov/nist/secauto/oscal/java/MetaschemaVisitorTest.java
index 54069fc5..ae4efd8a 100644
--- a/src/test/java/gov/nist/secauto/oscal/java/MetaschemaVisitorTest.java
+++ b/src/test/java/gov/nist/secauto/oscal/java/MetaschemaVisitorTest.java
@@ -80,31 +80,40 @@ void test() throws FileNotFoundException, IOException, URISyntaxException {
// File("resolved-catalog.xml")));
// evaluatePath(MetapathExpression.compile("resolve-profile(doc(resolve-uri(/profile/import/@href,
- // document-uri(/profile))))/(profile, catalog)//control/@id"), nodeItem, dynamicContext);
+ // document-uri(/profile))))/(profile, catalog)//control/@id"), nodeItem,
+ // dynamicContext);
evaluatePath(MetapathExpression.compile("//control/@id"), resolvedProfile, dynamicContext);
// evaluatePath(MetapathExpression.compile("doc(resolve-uri(/profile/import/@href,
- // document-uri(/profile)))/catalog/metadata/last-modified"), nodeItem, dynamicContext);
+ // document-uri(/profile)))/catalog/metadata/last-modified"), nodeItem,
+ // dynamicContext);
// evaluatePath(
// MetapathExpression.compile("doc(resolve-uri(/profile/import/@href,
- // document-uri(/profile)))/catalog/metadata/last-modified - /catalog/metadata/last-modified"),
+ // document-uri(/profile)))/catalog/metadata/last-modified -
+ // /catalog/metadata/last-modified"),
// nodeItem, dynamicContext);
// evaluatePath(MetapathExpression.compile("doc(resolve-uri(/profile/import/@href,
- // document-uri(/profile)))/catalog/metadata/last-modified + duration('PT1H')"), nodeItem,
+ // document-uri(/profile)))/catalog/metadata/last-modified + duration('PT1H')"),
+ // nodeItem,
// dynamicContext);
// evaluatePath(MetapathExpression.compile("doc(resolve-uri(/profile/import/@href,
// document-uri(/profile)))/catalog/metadata/last-modified,/catalog/metadata/last-modified"),
// nodeItem, dynamicContext);
// evaluatePath(MetapathExpression.compile("doc('target/download/content/NIST_SP-800-53_rev5_catalog.xml')"),
// nodeItem, dynamicContext);
- // evaluatePath(Metapath.parseMetapathString("2 eq 1 + 1[/catalog]"), nodeContext, visitor);
+ // evaluatePath(Metapath.parseMetapathString("2 eq 1 + 1[/catalog]"),
+ // nodeContext, visitor);
// evaluatePath(Metapath.parseMetapathString("/catalog/back-matter/resource[rlink/@href='https://doi.org/10.6028/NIST.SP.800-53r5']"),
// nodeItem, dynamicContext);
- // evaluatePath(MetapathExpression.compile("/catalog//(@id,@uuid)"), nodeItem, dynamicContext);
- // evaluatePath(MetapathExpression.compile("exists(/catalog//(@id,@uuid))"), nodeItem,
+ // evaluatePath(MetapathExpression.compile("/catalog//(@id,@uuid)"), nodeItem,
+ // dynamicContext);
+ // evaluatePath(MetapathExpression.compile("exists(/catalog//(@id,@uuid))"),
+ // nodeItem,
// dynamicContext);
- // evaluatePath(MetapathExpression.compile("/catalog//control//prop/@name"), nodeItem,
+ // evaluatePath(MetapathExpression.compile("/catalog//control//prop/@name"),
+ // nodeItem,
// dynamicContext);
- // evaluatePath(Metapath.parseMetapathString("(/catalog//control[@id='ac-1'])"), nodeItem,
+ // evaluatePath(Metapath.parseMetapathString("(/catalog//control[@id='ac-1'])"),
+ // nodeItem,
// dynamicContext);
}
diff --git a/src/test/java/gov/nist/secauto/oscal/java/OscalBindingContextTest.java b/src/test/java/gov/nist/secauto/oscal/java/OscalBindingContextTest.java
index 266f1020..000976a3 100644
--- a/src/test/java/gov/nist/secauto/oscal/java/OscalBindingContextTest.java
+++ b/src/test/java/gov/nist/secauto/oscal/java/OscalBindingContextTest.java
@@ -66,7 +66,8 @@ static void initialize() { // NOPMD actually used
@Test
void testLoadCatalogYaml(@TempDir Path tempDir) throws IOException {
- // the YAML catalog is currently malformed, this will create a proper one for this test
+ // the YAML catalog is currently malformed, this will create a proper one for
+ // this test
Catalog catalog
= loader.load(ObjectUtils.notNull(
new File("target/download/content/NIST_SP-800-53_rev5_catalog.yaml").getCanonicalFile()));
diff --git a/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/selection/DefaultControlSelectionFilterTest.java b/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/selection/DefaultControlSelectionFilterTest.java
index c294a587..dd543613 100644
--- a/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/selection/DefaultControlSelectionFilterTest.java
+++ b/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/selection/DefaultControlSelectionFilterTest.java
@@ -204,7 +204,8 @@ void testSingleSelectionWithIdsFilter() {
}
/**
- * Test the filtering of a single match criteria using "with-ids" and "with-child=yes".
+ * Test the filtering of a single match criteria using "with-ids" and
+ * "with-child=yes".
*/
@Test
@SuppressFBWarnings("RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT")