DATAMONGO-2517 - Polishing.
Reformat code. Original pull request: #857.
This commit is contained in:
@@ -1264,10 +1264,14 @@ public class MappingMongoConverter extends AbstractMongoConverter implements App
|
|||||||
|
|
||||||
if (conversions.isSimpleType(obj.getClass())) {
|
if (conversions.isSimpleType(obj.getClass())) {
|
||||||
|
|
||||||
Class<?> conversionTargetType = Object.class;
|
Class<?> conversionTargetType;
|
||||||
|
|
||||||
if (typeInformation != null && conversions.isSimpleType(typeInformation.getType())) {
|
if (typeInformation != null && conversions.isSimpleType(typeInformation.getType())) {
|
||||||
conversionTargetType = typeInformation.getType();
|
conversionTargetType = typeInformation.getType();
|
||||||
|
} else {
|
||||||
|
conversionTargetType = Object.class;
|
||||||
}
|
}
|
||||||
|
|
||||||
return getPotentiallyConvertedSimpleWrite(obj, conversionTargetType);
|
return getPotentiallyConvertedSimpleWrite(obj, conversionTargetType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user