Skip to content

Commit

Permalink
Expose factory methods in case anyone wants to instantiate a specific…
Browse files Browse the repository at this point in the history
… ReverseListSerializer.

unused import
  • Loading branch information
Sela committed Jul 25, 2016
1 parent 26ebad4 commit 5db1485
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.esotericsoftware.kryo.serializers.CollectionSerializer;

import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

Expand Down Expand Up @@ -41,11 +40,11 @@ public static void registerSerializers(final Kryo kryo) {
kryo.register(Lists.reverse(Lists.newArrayList()).getClass(), forRandomAccessReverseList());
}

private static ReverseListSerializer forReverseList() {
public static ReverseListSerializer forReverseList() {
return new ReverseListSerializer.ReverseList();
}

private static ReverseListSerializer forRandomAccessReverseList() {
public static ReverseListSerializer forRandomAccessReverseList() {
return new ReverseListSerializer.RandomAccessReverseList();
}

Expand Down

0 comments on commit 5db1485

Please sign in to comment.