DATAMONGO-2377 - Polishing.

Reformat code.

Original pull request: #792.
This commit is contained in:
Mark Paluch
2019-09-25 13:35:52 +02:00
parent 899b43a29b
commit 205a06e79a
2 changed files with 3 additions and 3 deletions

View File

@@ -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));
}

View File

@@ -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( //