Skip to content

Commit 312df33

Browse files
committed
DATAES-350 - Adapt to SimpleTypeHolder changes in Spring Data Commons.
Replace constructor usage with singleton instance. Related Ticket: DATAES-350.
1 parent 05a0186 commit 312df33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/springframework/data/elasticsearch/core/MappingBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class MappingBuilder {
7272
public static final String TYPE_VALUE_GEO_HASH_PREFIX = "geohash_prefix";
7373
public static final String TYPE_VALUE_GEO_HASH_PRECISION = "geohash_precision";
7474

75-
private static SimpleTypeHolder SIMPLE_TYPE_HOLDER = new SimpleTypeHolder();
75+
private static SimpleTypeHolder SIMPLE_TYPE_HOLDER = SimpleTypeHolder.DEFAULT;
7676

7777
static XContentBuilder buildMapping(Class clazz, String indexType, String idFieldName, String parentType) throws IOException {
7878

src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private static SimpleElasticsearchPersistentProperty createProperty(SimpleElasti
6767
String field) {
6868

6969
Property property = Property.of(ReflectionUtils.findField(entity.getTypeInformation().getType(), field));
70-
return new SimpleElasticsearchPersistentProperty(property, entity, new SimpleTypeHolder());
70+
return new SimpleElasticsearchPersistentProperty(property, entity, SimpleTypeHolder.DEFAULT);
7171

7272
}
7373

0 commit comments

Comments
 (0)