Skip to content

Commit 4958094

Browse files
committed
Made Map and Collection codecs final
1 parent 349cc94 commit 4958094

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bson/src/main/org/bson/codecs/pojo/CollectionCodec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import java.util.Collection;
2828

2929

30-
class CollectionCodec<T> implements Codec<Collection<T>> {
30+
final class CollectionCodec<T> implements Codec<Collection<T>> {
3131
private final Class<Collection<T>> encoderClass;
3232
private final Codec<T> codec;
3333

bson/src/main/org/bson/codecs/pojo/MapCodec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import java.util.Map.Entry;
2929

3030
@SuppressWarnings({"unchecked", "rawtypes"})
31-
class MapCodec<T> implements Codec<Map<String, T>> {
31+
final class MapCodec<T> implements Codec<Map<String, T>> {
3232
private final Class<Map<String, T>> encoderClass;
3333
private final Codec<T> codec;
3434

0 commit comments

Comments
 (0)