Skip to content

Commit 1cb5c86

Browse files
committed
Remove unused code from internal CollectionAdapter
1 parent b4191a7 commit 1cb5c86

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

jsonb/src/main/java/io/avaje/jsonb/core/CollectionAdapter.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,6 @@ abstract class CollectionAdapter<C extends Collection<T>, T> extends JsonAdapter
3939
return null;
4040
};
4141

42-
/**
43-
* Helper that takes a base JsonAdapter and returns another JsonAdapter for a List
44-
* containing elements of the base type.
45-
*/
46-
static <T> JsonAdapter<List<T>> listOf(JsonAdapter<T> base) {
47-
return new CollectionAdapter<List<T>, T>(base) {
48-
@Override
49-
List<T> newCollection() {
50-
return new ArrayList<>();
51-
}
52-
};
53-
}
54-
55-
static <T> JsonAdapter<Set<T>> setOf(JsonAdapter<T> base) {
56-
return new CollectionAdapter<Set<T>, T>(base) {
57-
@Override
58-
Set<T> newCollection() {
59-
return new LinkedHashSet<>();
60-
}
61-
};
62-
}
63-
6442
static <T> JsonAdapter<Collection<T>> newListAdapter(Type type, Jsonb jsonb) {
6543
Type elementType = Util.collectionElementType(type);
6644
JsonAdapter<T> elementAdapter = jsonb.adapter(elementType);

0 commit comments

Comments
 (0)