Skip to content

Commit

Permalink
remove vestigial HashMapCodec
Browse files Browse the repository at this point in the history
fixes #2936
  • Loading branch information
evanchooly committed Jun 12, 2024
1 parent bf0a36c commit 7f03284
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import dev.morphia.DatastoreImpl;

import org.bson.codecs.Codec;
import org.bson.codecs.MapCodec;
import org.bson.codecs.configuration.CodecProvider;
import org.bson.codecs.configuration.CodecRegistry;

Expand All @@ -32,7 +31,6 @@ public MorphiaTypesCodecProvider(DatastoreImpl datastore) {
addCodec(new MorphiaLocalTimeCodec());
addCodec(new ClassCodec());
addCodec(new CenterCodec());
addCodec(new HashMapCodec());
addCodec(new KeyCodec(datastore));
addCodec(new LocaleCodec());
addCodec(new ObjectCodec(datastore));
Expand Down Expand Up @@ -68,12 +66,4 @@ public <T> Codec<T> get(Class<T> clazz, CodecRegistry registry) {
return null;
}
}

private static class HashMapCodec extends MapCodec {
@Override
public Class<Map<String, Object>> getEncoderClass() {
return (Class<Map<String, Object>>) ((Class<?>) HashMap.class);
}
}

}

0 comments on commit 7f03284

Please sign in to comment.