@@ -280,6 +280,7 @@ public void setCodecRegistryProvider(@Nullable CodecRegistryProvider codecRegist
280280 this .codecRegistryProvider = codecRegistryProvider ;
281281 }
282282
283+ @ Override
283284 public MappingContext <? extends MongoPersistentEntity <?>, MongoPersistentProperty > getMappingContext () {
284285 return mappingContext ;
285286 }
@@ -432,6 +433,7 @@ public Map<String, Object> getBean() {
432433 }
433434 }
434435
436+ @ Override
435437 public <S extends Object > S read (Class <S > clazz , Bson bson ) {
436438 return read (TypeInformation .of (clazz ), bson );
437439 }
@@ -729,6 +731,7 @@ private Object readUnwrapped(ConversionContext context, DocumentAccessor documen
729731 return null ;
730732 }
731733
734+ @ Override
732735 public DBRef toDBRef (Object object , @ Nullable MongoPersistentProperty referringProperty ) {
733736
734737 org .springframework .data .mongodb .core .mapping .DBRef annotation ;
@@ -795,6 +798,7 @@ DocumentPointer<?> createDocumentPointer(Object source, @Nullable MongoPersisten
795798 *
796799 * @see org.springframework.data.mongodb.core.convert.MongoWriter#write(java.lang.Object, java.lang.Object)
797800 */
801+ @ Override
798802 public void write (Object obj , Bson bson ) {
799803
800804 if (null == obj ) {
@@ -934,7 +938,7 @@ private void writeAssociation(Association<MongoPersistentProperty> association,
934938 }
935939
936940 @ SuppressWarnings ({ "unchecked" })
937- protected void writePropertyInternal (@ Nullable Object obj , DocumentAccessor accessor , MongoPersistentProperty prop ,
941+ void writePropertyInternal (@ Nullable Object obj , DocumentAccessor accessor , MongoPersistentProperty prop ,
938942 PersistentPropertyAccessor <?> persistentPropertyAccessor ) {
939943
940944 if (obj == null ) {
@@ -1610,13 +1614,13 @@ public Object convertToMongoType(@Nullable Object obj, @Nullable TypeInformation
16101614 }
16111615
16121616 @ Override
1613- public Object convertToMongoType (@ Nullable Object obj , MongoPersistentEntity entity ) {
1617+ public Object convertToMongoType (@ Nullable Object obj , MongoPersistentEntity <?> entity ) {
16141618 Document newDocument = new Document ();
16151619 writeInternal (obj , newDocument , entity );
16161620 return newDocument ;
16171621 }
16181622
1619- // TODO: hide in 4 .0
1623+ // TODO: hide in 5 .0
16201624 public List <Object > maybeConvertList (Iterable <?> source , @ Nullable TypeInformation <?> typeInformation ) {
16211625
16221626 List <Object > newDbl = new ArrayList <>();
@@ -1948,6 +1952,7 @@ static class MongoDbPropertyValueProvider implements PropertyValueProvider<Mongo
19481952 this .spELContext = spELContext ;
19491953 }
19501954
1955+ @ Override
19511956 @ Nullable
19521957 @ SuppressWarnings ("unchecked" )
19531958 public <T > T getPropertyValue (MongoPersistentProperty property ) {
0 commit comments