Skip to content

Commit cd6e036

Browse files
christophstroblodrotbohm
authored andcommitted
DATACOUCH-129 - Ensure Spring Framework 4.2 compatibility.
Removed deprecated (and in 4.2 removed) usage of ConversionServiceFactory in MappingCouchbaseConverter. Original pull request: #42.
1 parent 48ee810 commit cd6e036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/springframework/data/couchbase/core/convert/MappingCouchbaseConverter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.springframework.context.ApplicationContextAware;
2121
import org.springframework.core.CollectionFactory;
2222
import org.springframework.core.convert.ConversionService;
23-
import org.springframework.core.convert.support.ConversionServiceFactory;
23+
import org.springframework.core.convert.support.DefaultConversionService;
2424
import org.springframework.data.convert.EntityInstantiator;
2525
import org.springframework.data.couchbase.core.mapping.CouchbaseDocument;
2626
import org.springframework.data.couchbase.core.mapping.CouchbaseList;
@@ -80,7 +80,7 @@ public class MappingCouchbaseConverter extends AbstractCouchbaseConverter
8080
@SuppressWarnings("deprecation")
8181
public MappingCouchbaseConverter(final MappingContext<? extends CouchbasePersistentEntity<?>,
8282
CouchbasePersistentProperty> mappingContext) {
83-
super(ConversionServiceFactory.createDefaultConversionService());
83+
super(new DefaultConversionService());
8484

8585
this.mappingContext = mappingContext;
8686
typeMapper = new DefaultCouchbaseTypeMapper(DefaultCouchbaseTypeMapper.DEFAULT_TYPE_KEY);

0 commit comments

Comments
 (0)