Skip to content

Commit

Permalink
[Java] Make collections non-final. Fix #133
Browse files Browse the repository at this point in the history
  • Loading branch information
nitsanw committed Mar 6, 2018
1 parent ef9fd8a commit d61f6fc
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
* @param <V> type of the object stored in the map.
*/
public final class BiInt2ObjectMap<V> implements Serializable
public class BiInt2ObjectMap<V> implements Serializable
{
/**
* Handler for a map entry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* A open-addressing with linear probing hash map specialised for primitive key and counter pairs. A counter map views
* counters which hit {@link #initialValue} as deleted. This means that changing a counter may impact {@link #size()}.
*/
public final class Int2IntCounterMap implements Serializable
public class Int2IntCounterMap implements Serializable
{
@DoNotSub private static final int MIN_CAPACITY = 8;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* A open addressing with linear probing hash map specialised for primitive key and value pairs.
*/
public final class Int2IntHashMap implements Map<Integer, Integer>, Serializable
public class Int2IntHashMap implements Map<Integer, Integer>, Serializable
{
@DoNotSub private static final int MIN_CAPACITY = 8;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
*
* @param <V> type of values stored in the {@link Map}
*/
public final class Int2ObjectCache<V>
public class Int2ObjectCache<V>
implements Map<Integer, V>, Serializable
{
private long cachePuts = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/**
* A {@link List} implementation that stores int values with the ability to not have them boxed.
*/
public final class IntArrayList extends AbstractList<Integer> implements List<Integer>, RandomAccess, Serializable
public class IntArrayList extends AbstractList<Integer> implements List<Integer>, RandomAccess, Serializable
{
/**
* The default value that will be used in place of null for an element.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* @see IntIterator
* @see Set
*/
public final class IntHashSet extends AbstractSet<Integer> implements Serializable
public class IntHashSet extends AbstractSet<Integer> implements Serializable
{
/**
* The initial capacity used when none is specified in the constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*
* @param <K> type of keys stored in the {@link java.util.Map}
*/
public final class Object2IntHashMap<K>
public class Object2IntHashMap<K>
implements Map<K, Integer>, Serializable
{
@DoNotSub private static final int MIN_CAPACITY = 8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @see ObjectIterator
* @see Set
*/
public final class ObjectHashSet<T> extends AbstractSet<T> implements Serializable
public class ObjectHashSet<T> extends AbstractSet<T> implements Serializable
{
/**
* The initial capacity used when none is specified in the constructor.
Expand Down

0 comments on commit d61f6fc

Please sign in to comment.