DATAMONGO-2377 - Polishing.
Reformat code. Original pull request: #792.
This commit is contained in:
@@ -70,7 +70,7 @@ class ExposedFieldsAggregationOperationContext implements AggregationOperationCo
|
||||
@Override
|
||||
public FieldReference getReference(Field field) {
|
||||
|
||||
if(field.isInternal()) {
|
||||
if (field.isInternal()) {
|
||||
return new DirectFieldReference(new ExposedField(field, true));
|
||||
}
|
||||
|
||||
|
||||
@@ -567,11 +567,11 @@ public class AggregationUnitTests {
|
||||
Document $project = extractPipelineElement(agg.toDocument("collection-1", Aggregation.DEFAULT_CONTEXT), 0,
|
||||
"$project");
|
||||
|
||||
assertThat($project.containsKey("plts.ests")).isTrue();
|
||||
assertThat($project).containsKey("plts.ests");
|
||||
}
|
||||
|
||||
@Test // DATAMONGO-2377
|
||||
public void shouldAllowInternal$$thisAnd$$valueReferences() {
|
||||
public void shouldAllowInternalThisAndValueReferences() {
|
||||
|
||||
Document untyped = newAggregation( //
|
||||
Arrays.asList( //
|
||||
|
||||
Reference in New Issue
Block a user