Add missing private static final long serialVersionUID.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1457872 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2013-03-18 17:14:01 +00:00
parent e230b2d40e
commit 24e0cf268b
7 changed files with 40 additions and 0 deletions

View File

@ -326,6 +326,10 @@ public abstract class AbstractDualBidiMap<K, V> implements BidiMap<K, V> {
@SuppressWarnings("serial")
protected static abstract class View<K, V, E> extends AbstractCollectionDecorator<E> {
/**
* Generated serial version ID.
*/
private static final long serialVersionUID = 4621510560119690639L;
/** The parent map */
protected final AbstractDualBidiMap<K, V> parent;

View File

@ -109,6 +109,10 @@ abstract class AbstractInputCheckedMapDecorator<K, V>
@SuppressWarnings("serial")
private class EntrySet extends AbstractSetDecorator<Map.Entry<K, V>> {
/**
* Generated serial version ID.
*/
private static final long serialVersionUID = 4354731610923110264L;
/** The parent map */
private final AbstractInputCheckedMapDecorator<K, V> parent;

View File

@ -218,6 +218,10 @@ public class FactoryUtilsTest extends junit.framework.TestCase {
@SuppressWarnings("serial")
public static class Mock2 implements Serializable {
/**
* Generated serial version ID.
*/
private static final long serialVersionUID = 4899282162482588924L;
private final Object iVal;
public Mock2(final Object val) {
iVal = val;

View File

@ -529,6 +529,11 @@ public class BlockingBufferTest<E> extends AbstractObjectTest {
@SuppressWarnings("serial")
protected static class MyBuffer<E> extends LinkedList<E> implements Buffer<E> {
/**
* Generated serial version ID.
*/
private static final long serialVersionUID = -1772433262105175184L;
public E get() {
if (isEmpty()) {
throw new BufferUnderflowException();

View File

@ -131,6 +131,10 @@ public class ComparatorChainTest extends AbstractComparatorTest<ComparatorChainT
@SuppressWarnings("serial")
public static class PseudoRow implements Serializable {
/**
* Generated serial version ID.
*/
private static final long serialVersionUID = 8085570439751032499L;
public int cols[] = new int[3];
public PseudoRow(final int col1, final int col2, final int col3) {

View File

@ -616,6 +616,11 @@ public class SetUniqueListTest<E> extends AbstractListTest<E> {
@SuppressWarnings("serial")
class SetUniqueList307 extends SetUniqueList<E> {
/**
* Generated serial version ID.
*/
private static final long serialVersionUID = 1415013031022962158L;
public SetUniqueList307(final List<E> list, final Set<E> set) {
super(list, set);
}

View File

@ -253,6 +253,10 @@ public class LRUMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
@SuppressWarnings("serial")
static class MockLRUMapSubclass<K, V> extends LRUMap<K, V> {
/**
* Generated serial version ID.
*/
private static final long serialVersionUID = -2126883654452042477L;
LinkEntry<K, V> entry;
K key;
V value;
@ -304,6 +308,11 @@ public class LRUMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
@SuppressWarnings("serial")
static class MockLRUMapSubclassBlocksRemove<K, V> extends LRUMap<K, V> {
/**
* Generated serial version ID.
*/
private static final long serialVersionUID = 6278917461128992945L;
MockLRUMapSubclassBlocksRemove(final int size, final boolean scanUntilRemove) {
super(size, scanUntilRemove);
}
@ -332,6 +341,11 @@ public class LRUMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
@SuppressWarnings("serial")
static class MockLRUMapSubclassFirstBlocksRemove<K, V> extends LRUMap<K, V> {
/**
* Generated serial version ID.
*/
private static final long serialVersionUID = -6939790801702973428L;
MockLRUMapSubclassFirstBlocksRemove(final int size) {
super(size, true);
}