From 24e0cf268b566fba6572ef7ca56369b2bd6fa83d Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Mon, 18 Mar 2013 17:14:01 +0000 Subject: [PATCH] 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 --- .../collections/bidimap/AbstractDualBidiMap.java | 4 ++++ .../map/AbstractInputCheckedMapDecorator.java | 4 ++++ .../commons/collections/FactoryUtilsTest.java | 4 ++++ .../collections/buffer/BlockingBufferTest.java | 5 +++++ .../comparators/ComparatorChainTest.java | 4 ++++ .../collections/list/SetUniqueListTest.java | 5 +++++ .../apache/commons/collections/map/LRUMapTest.java | 14 ++++++++++++++ 7 files changed, 40 insertions(+) diff --git a/src/main/java/org/apache/commons/collections/bidimap/AbstractDualBidiMap.java b/src/main/java/org/apache/commons/collections/bidimap/AbstractDualBidiMap.java index 5d18cbfce..8bb602f8d 100644 --- a/src/main/java/org/apache/commons/collections/bidimap/AbstractDualBidiMap.java +++ b/src/main/java/org/apache/commons/collections/bidimap/AbstractDualBidiMap.java @@ -326,6 +326,10 @@ public abstract class AbstractDualBidiMap implements BidiMap { @SuppressWarnings("serial") protected static abstract class View extends AbstractCollectionDecorator { + /** + * Generated serial version ID. + */ + private static final long serialVersionUID = 4621510560119690639L; /** The parent map */ protected final AbstractDualBidiMap parent; diff --git a/src/main/java/org/apache/commons/collections/map/AbstractInputCheckedMapDecorator.java b/src/main/java/org/apache/commons/collections/map/AbstractInputCheckedMapDecorator.java index 1c80466de..de161a5dd 100644 --- a/src/main/java/org/apache/commons/collections/map/AbstractInputCheckedMapDecorator.java +++ b/src/main/java/org/apache/commons/collections/map/AbstractInputCheckedMapDecorator.java @@ -109,6 +109,10 @@ abstract class AbstractInputCheckedMapDecorator @SuppressWarnings("serial") private class EntrySet extends AbstractSetDecorator> { + /** + * Generated serial version ID. + */ + private static final long serialVersionUID = 4354731610923110264L; /** The parent map */ private final AbstractInputCheckedMapDecorator parent; diff --git a/src/test/java/org/apache/commons/collections/FactoryUtilsTest.java b/src/test/java/org/apache/commons/collections/FactoryUtilsTest.java index 8f16522d8..ce0084c65 100644 --- a/src/test/java/org/apache/commons/collections/FactoryUtilsTest.java +++ b/src/test/java/org/apache/commons/collections/FactoryUtilsTest.java @@ -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; diff --git a/src/test/java/org/apache/commons/collections/buffer/BlockingBufferTest.java b/src/test/java/org/apache/commons/collections/buffer/BlockingBufferTest.java index 121be3303..d0d8a4d97 100644 --- a/src/test/java/org/apache/commons/collections/buffer/BlockingBufferTest.java +++ b/src/test/java/org/apache/commons/collections/buffer/BlockingBufferTest.java @@ -529,6 +529,11 @@ public class BlockingBufferTest extends AbstractObjectTest { @SuppressWarnings("serial") protected static class MyBuffer extends LinkedList implements Buffer { + /** + * Generated serial version ID. + */ + private static final long serialVersionUID = -1772433262105175184L; + public E get() { if (isEmpty()) { throw new BufferUnderflowException(); diff --git a/src/test/java/org/apache/commons/collections/comparators/ComparatorChainTest.java b/src/test/java/org/apache/commons/collections/comparators/ComparatorChainTest.java index 389082c4f..51c2e4e01 100644 --- a/src/test/java/org/apache/commons/collections/comparators/ComparatorChainTest.java +++ b/src/test/java/org/apache/commons/collections/comparators/ComparatorChainTest.java @@ -131,6 +131,10 @@ public class ComparatorChainTest extends AbstractComparatorTest extends AbstractListTest { @SuppressWarnings("serial") class SetUniqueList307 extends SetUniqueList { + /** + * Generated serial version ID. + */ + private static final long serialVersionUID = 1415013031022962158L; + public SetUniqueList307(final List list, final Set set) { super(list, set); } diff --git a/src/test/java/org/apache/commons/collections/map/LRUMapTest.java b/src/test/java/org/apache/commons/collections/map/LRUMapTest.java index e5fa50308..c1322f52f 100644 --- a/src/test/java/org/apache/commons/collections/map/LRUMapTest.java +++ b/src/test/java/org/apache/commons/collections/map/LRUMapTest.java @@ -253,6 +253,10 @@ public class LRUMapTest extends AbstractOrderedMapTest { @SuppressWarnings("serial") static class MockLRUMapSubclass extends LRUMap { + /** + * Generated serial version ID. + */ + private static final long serialVersionUID = -2126883654452042477L; LinkEntry entry; K key; V value; @@ -304,6 +308,11 @@ public class LRUMapTest extends AbstractOrderedMapTest { @SuppressWarnings("serial") static class MockLRUMapSubclassBlocksRemove extends LRUMap { + /** + * 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 extends AbstractOrderedMapTest { @SuppressWarnings("serial") static class MockLRUMapSubclassFirstBlocksRemove extends LRUMap { + /** + * Generated serial version ID. + */ + private static final long serialVersionUID = -6939790801702973428L; + MockLRUMapSubclassFirstBlocksRemove(final int size) { super(size, true); }