From fa66702980ef073a7a277ba21e5b4a552f6c6676 Mon Sep 17 00:00:00 2001 From: Peter-Josef Meisch Date: Sat, 11 Sep 2021 11:51:05 +0200 Subject: [PATCH] MappingElasticsearchConverter cleanup. Original Pull Request #1931 Closes #1923 --- .../MappingElasticsearchConverter.java | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/src/main/java/org/springframework/data/elasticsearch/core/convert/MappingElasticsearchConverter.java b/src/main/java/org/springframework/data/elasticsearch/core/convert/MappingElasticsearchConverter.java index 1a4640fae..3189cacb2 100644 --- a/src/main/java/org/springframework/data/elasticsearch/core/convert/MappingElasticsearchConverter.java +++ b/src/main/java/org/springframework/data/elasticsearch/core/convert/MappingElasticsearchConverter.java @@ -1107,34 +1107,6 @@ public class MappingElasticsearchConverter return writeMapInternal(map, new LinkedHashMap<>(map.size()), property.getTypeInformation()); } - /** - * @deprecated since 4.2, use {@link #getPotentiallyConvertedSimpleWrite(Object, Class)} instead. - */ - @Nullable - @Deprecated - protected Object getWriteSimpleValue(Object value) { - Optional> customTarget = conversions.getCustomWriteTarget(value.getClass()); - - if (customTarget.isPresent()) { - return conversionService.convert(value, customTarget.get()); - } - - return Enum.class.isAssignableFrom(value.getClass()) ? ((Enum) value).name() : value; - } - - /** - * @deprecated since 4.2, use {@link #writeInternal(Object, Map, TypeInformation)} instead. - */ - @Deprecated - protected Object getWriteComplexValue(ElasticsearchPersistentProperty property, - @SuppressWarnings("unused") TypeInformation typeHint, Object value) { - - Document document = Document.create(); - writeInternal(value, document, property.getTypeInformation()); - - return document; - } - /** * Returns given object as {@link Collection}. Will return the {@link Collection} as is if the source is a * {@link Collection} already, will convert an array into a {@link Collection} or simply create a single element