DATAMONGO-2517 - Polishing.

Reformat code.

Original pull request: #857.
This commit is contained in:
Mark Paluch
2020-04-21 16:01:52 +02:00
parent 6604c507dd
commit b57e571033
2 changed files with 7 additions and 3 deletions

View File

@@ -1284,10 +1284,14 @@ public class MappingMongoConverter extends AbstractMongoConverter implements App
if (conversions.isSimpleType(obj.getClass())) {
Class<?> conversionTargetType = Object.class;
if(typeInformation != null && conversions.isSimpleType(typeInformation.getType())) {
Class<?> conversionTargetType;
if (typeInformation != null && conversions.isSimpleType(typeInformation.getType())) {
conversionTargetType = typeInformation.getType();
} else {
conversionTargetType = Object.class;
}
return getPotentiallyConvertedSimpleWrite(obj, conversionTargetType);
}

View File

@@ -989,7 +989,7 @@ public class QueryMapperUnitTests {
}
@Test // DATAMONGO-2517
public void shouldParseNestedKeywordWithArgumentMatchingTheSourceEntitiesConstructorCorrectly() {
void shouldParseNestedKeywordWithArgumentMatchingTheSourceEntitiesConstructorCorrectly() {
TextQuery source = new TextQuery("test");