From bafc2bebf2a7a00230feb9c4da58a69af164df94 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 14 Dec 2021 09:36:09 +0100 Subject: [PATCH] Polishing. Tweak Javadoc. See #3898 Original pull request: #3904. --- .../aggregation/TypeBasedAggregationOperationContext.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/TypeBasedAggregationOperationContext.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/TypeBasedAggregationOperationContext.java index 0a7fa1003..9a8545455 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/TypeBasedAggregationOperationContext.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/TypeBasedAggregationOperationContext.java @@ -21,7 +21,7 @@ import java.util.ArrayList; import java.util.List; import org.bson.Document; -import org.springframework.data.mapping.PersistentEntity; + import org.springframework.data.mapping.PersistentPropertyPath; import org.springframework.data.mapping.context.MappingContext; import org.springframework.data.mongodb.core.aggregation.ExposedFields.DirectFieldReference; @@ -142,12 +142,13 @@ public class TypeBasedAggregationOperationContext implements AggregationOperatio /** * This toggle allows the {@link AggregationOperationContext context} to use any given field name without checking for - * its existence. Typically the {@link AggregationOperationContext} fails when referencing unknown fields, those that + * its existence. Typically, the {@link AggregationOperationContext} fails when referencing unknown fields, those that * are not present in one of the previous stages or the input source, throughout the pipeline. * * @param type The domain type to map fields to. * @return a more relaxed {@link AggregationOperationContext}. * @since 3.1 + * @see RelaxedTypeBasedAggregationOperationContext */ public AggregationOperationContext continueOnMissingFieldReference(Class type) { return new RelaxedTypeBasedAggregationOperationContext(type, mappingContext, mapper);