From 69aa3946d2a6da812c44a4e7e7fe45087afe1cdc Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Mon, 18 Nov 2013 21:21:32 +0000 Subject: [PATCH] Remove redundant super-interfaces, already defined by super-types. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1543167 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/collections4/bag/CollectionBag.java | 4 +--- .../apache/commons/collections4/bag/CollectionSortedBag.java | 4 +--- .../java/org/apache/commons/collections4/bag/HashBag.java | 2 +- .../org/apache/commons/collections4/bag/UnmodifiableBag.java | 5 ++--- .../commons/collections4/bag/UnmodifiableSortedBag.java | 5 ++--- .../collections4/functors/AbstractQuantifierPredicate.java | 2 +- .../apache/commons/collections4/functors/AllPredicate.java | 3 +-- .../apache/commons/collections4/functors/AndPredicate.java | 2 +- .../apache/commons/collections4/functors/AnyPredicate.java | 3 +-- .../apache/commons/collections4/functors/NonePredicate.java | 3 +-- .../apache/commons/collections4/functors/NotPredicate.java | 2 +- .../collections4/functors/NullIsExceptionPredicate.java | 2 +- .../commons/collections4/functors/NullIsFalsePredicate.java | 2 +- .../commons/collections4/functors/NullIsTruePredicate.java | 2 +- .../apache/commons/collections4/functors/OnePredicate.java | 3 +-- .../apache/commons/collections4/functors/OrPredicate.java | 2 +- .../commons/collections4/functors/TransformedPredicate.java | 2 +- .../commons/collections4/iterators/ArrayListIterator.java | 2 +- .../commons/collections4/iterators/ObjectArrayIterator.java | 3 +-- .../collections4/iterators/ObjectArrayListIterator.java | 2 +- .../commons/collections4/iterators/SingletonIterator.java | 2 +- .../collections4/iterators/SingletonListIterator.java | 2 +- .../collections4/list/AbstractSerializableListDecorator.java | 4 +--- .../org/apache/commons/collections4/map/FixedSizeMap.java | 2 +- .../apache/commons/collections4/map/FixedSizeSortedMap.java | 2 +- .../java/org/apache/commons/collections4/map/LazyMap.java | 2 +- .../org/apache/commons/collections4/map/MultiKeyMap.java | 3 +-- .../org/apache/commons/collections4/map/UnmodifiableMap.java | 2 +- .../apache/commons/collections4/queue/UnmodifiableQueue.java | 3 +-- .../collections4/set/AbstractSerializableSetDecorator.java | 4 +--- .../org/apache/commons/collections4/set/ListOrderedSet.java | 3 +-- .../commons/collections4/set/UnmodifiableSortedSet.java | 3 +-- .../commons/collections4/trie/AbstractPatriciaTrie.java | 2 +- .../org/apache/commons/collections4/trie/PatriciaTrie.java | 2 +- 34 files changed, 36 insertions(+), 55 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/bag/CollectionBag.java b/src/main/java/org/apache/commons/collections4/bag/CollectionBag.java index 01cdfab23..d600406f5 100644 --- a/src/main/java/org/apache/commons/collections4/bag/CollectionBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/CollectionBag.java @@ -19,7 +19,6 @@ package org.apache.commons.collections4.bag; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; -import java.io.Serializable; import java.util.Collection; import java.util.Iterator; @@ -31,8 +30,7 @@ import org.apache.commons.collections4.Bag; * @since 4.0 * @version $Id$ */ -public final class CollectionBag - extends AbstractBagDecorator implements Serializable { +public final class CollectionBag extends AbstractBagDecorator { /** Serialization version */ private static final long serialVersionUID = -2560033712679053143L; diff --git a/src/main/java/org/apache/commons/collections4/bag/CollectionSortedBag.java b/src/main/java/org/apache/commons/collections4/bag/CollectionSortedBag.java index 34852c9e6..27f58d870 100644 --- a/src/main/java/org/apache/commons/collections4/bag/CollectionSortedBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/CollectionSortedBag.java @@ -19,7 +19,6 @@ package org.apache.commons.collections4.bag; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; -import java.io.Serializable; import java.util.Collection; import java.util.Iterator; @@ -31,8 +30,7 @@ import org.apache.commons.collections4.SortedBag; * @since 4.0 * @version $Id$ */ -public final class CollectionSortedBag - extends AbstractSortedBagDecorator implements Serializable { +public final class CollectionSortedBag extends AbstractSortedBagDecorator { /** Serialization version */ private static final long serialVersionUID = -2560033712679053143L; diff --git a/src/main/java/org/apache/commons/collections4/bag/HashBag.java b/src/main/java/org/apache/commons/collections4/bag/HashBag.java index 6dbe31a48..4b6880c9c 100644 --- a/src/main/java/org/apache/commons/collections4/bag/HashBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/HashBag.java @@ -38,7 +38,7 @@ import org.apache.commons.collections4.Bag; * @since 3.0 (previously in main package v2.0) * @version $Id$ */ -public class HashBag extends AbstractMapBag implements Bag, Serializable { +public class HashBag extends AbstractMapBag implements Serializable { /** Serial version lock */ private static final long serialVersionUID = -6561115435802554013L; diff --git a/src/main/java/org/apache/commons/collections4/bag/UnmodifiableBag.java b/src/main/java/org/apache/commons/collections4/bag/UnmodifiableBag.java index 8e3275e5b..d9edb826e 100644 --- a/src/main/java/org/apache/commons/collections4/bag/UnmodifiableBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/UnmodifiableBag.java @@ -19,15 +19,14 @@ package org.apache.commons.collections4.bag; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; -import java.io.Serializable; import java.util.Collection; import java.util.Iterator; import java.util.Set; -import org.apache.commons.collections4.set.UnmodifiableSet; import org.apache.commons.collections4.Bag; import org.apache.commons.collections4.Unmodifiable; import org.apache.commons.collections4.iterators.UnmodifiableIterator; +import org.apache.commons.collections4.set.UnmodifiableSet; /** * Decorates another {@link Bag} to ensure it can't be altered. @@ -40,7 +39,7 @@ import org.apache.commons.collections4.iterators.UnmodifiableIterator; * @version $Id$ */ public final class UnmodifiableBag - extends AbstractBagDecorator implements Unmodifiable, Serializable { + extends AbstractBagDecorator implements Unmodifiable { /** Serialization version */ private static final long serialVersionUID = -1873799975157099624L; diff --git a/src/main/java/org/apache/commons/collections4/bag/UnmodifiableSortedBag.java b/src/main/java/org/apache/commons/collections4/bag/UnmodifiableSortedBag.java index 52d71953e..77f35a7a4 100644 --- a/src/main/java/org/apache/commons/collections4/bag/UnmodifiableSortedBag.java +++ b/src/main/java/org/apache/commons/collections4/bag/UnmodifiableSortedBag.java @@ -19,15 +19,14 @@ package org.apache.commons.collections4.bag; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; -import java.io.Serializable; import java.util.Collection; import java.util.Iterator; import java.util.Set; -import org.apache.commons.collections4.set.UnmodifiableSet; import org.apache.commons.collections4.SortedBag; import org.apache.commons.collections4.Unmodifiable; import org.apache.commons.collections4.iterators.UnmodifiableIterator; +import org.apache.commons.collections4.set.UnmodifiableSet; /** * Decorates another {@link SortedBag} to ensure it can't be altered. @@ -40,7 +39,7 @@ import org.apache.commons.collections4.iterators.UnmodifiableIterator; * @version $Id$ */ public final class UnmodifiableSortedBag - extends AbstractSortedBagDecorator implements Unmodifiable, Serializable { + extends AbstractSortedBagDecorator implements Unmodifiable { /** Serialization version */ private static final long serialVersionUID = -3190437252665717841L; diff --git a/src/main/java/org/apache/commons/collections4/functors/AbstractQuantifierPredicate.java b/src/main/java/org/apache/commons/collections4/functors/AbstractQuantifierPredicate.java index 8bc8a4c98..d183161ce 100644 --- a/src/main/java/org/apache/commons/collections4/functors/AbstractQuantifierPredicate.java +++ b/src/main/java/org/apache/commons/collections4/functors/AbstractQuantifierPredicate.java @@ -26,7 +26,7 @@ import org.apache.commons.collections4.Predicate; * @since 4.0 * @version $Id$ */ -public abstract class AbstractQuantifierPredicate implements Predicate, PredicateDecorator, Serializable { +public abstract class AbstractQuantifierPredicate implements PredicateDecorator, Serializable { /** Serial version UID */ private static final long serialVersionUID = -3094696765038308799L; diff --git a/src/main/java/org/apache/commons/collections4/functors/AllPredicate.java b/src/main/java/org/apache/commons/collections4/functors/AllPredicate.java index 017f67e02..af4ed995a 100644 --- a/src/main/java/org/apache/commons/collections4/functors/AllPredicate.java +++ b/src/main/java/org/apache/commons/collections4/functors/AllPredicate.java @@ -20,7 +20,6 @@ import static org.apache.commons.collections4.functors.FunctorUtils.coerce; import static org.apache.commons.collections4.functors.FunctorUtils.validate; import static org.apache.commons.collections4.functors.TruePredicate.truePredicate; -import java.io.Serializable; import java.util.Collection; import org.apache.commons.collections4.Predicate; @@ -36,7 +35,7 @@ import org.apache.commons.collections4.Predicate; * @since 3.0 * @version $Id$ */ -public final class AllPredicate extends AbstractQuantifierPredicate implements Serializable { +public final class AllPredicate extends AbstractQuantifierPredicate { /** Serial version UID */ private static final long serialVersionUID = -3094696765038308799L; diff --git a/src/main/java/org/apache/commons/collections4/functors/AndPredicate.java b/src/main/java/org/apache/commons/collections4/functors/AndPredicate.java index a3c72f825..514fc5365 100644 --- a/src/main/java/org/apache/commons/collections4/functors/AndPredicate.java +++ b/src/main/java/org/apache/commons/collections4/functors/AndPredicate.java @@ -26,7 +26,7 @@ import org.apache.commons.collections4.Predicate; * @since 3.0 * @version $Id$ */ -public final class AndPredicate implements Predicate, PredicateDecorator, Serializable { +public final class AndPredicate implements PredicateDecorator, Serializable { /** Serial version UID */ private static final long serialVersionUID = 4189014213763186912L; diff --git a/src/main/java/org/apache/commons/collections4/functors/AnyPredicate.java b/src/main/java/org/apache/commons/collections4/functors/AnyPredicate.java index 0f8722d25..f3e43d2de 100644 --- a/src/main/java/org/apache/commons/collections4/functors/AnyPredicate.java +++ b/src/main/java/org/apache/commons/collections4/functors/AnyPredicate.java @@ -16,7 +16,6 @@ */ package org.apache.commons.collections4.functors; -import java.io.Serializable; import java.util.Collection; import org.apache.commons.collections4.Predicate; @@ -32,7 +31,7 @@ import org.apache.commons.collections4.Predicate; * @since 3.0 * @version $Id$ */ -public final class AnyPredicate extends AbstractQuantifierPredicate implements Serializable { +public final class AnyPredicate extends AbstractQuantifierPredicate { /** Serial version UID */ private static final long serialVersionUID = 7429999530934647542L; diff --git a/src/main/java/org/apache/commons/collections4/functors/NonePredicate.java b/src/main/java/org/apache/commons/collections4/functors/NonePredicate.java index f585d9aa4..012932ada 100644 --- a/src/main/java/org/apache/commons/collections4/functors/NonePredicate.java +++ b/src/main/java/org/apache/commons/collections4/functors/NonePredicate.java @@ -16,7 +16,6 @@ */ package org.apache.commons.collections4.functors; -import java.io.Serializable; import java.util.Collection; import org.apache.commons.collections4.Predicate; @@ -32,7 +31,7 @@ import org.apache.commons.collections4.Predicate; * @since 3.0 * @version $Id$ */ -public final class NonePredicate extends AbstractQuantifierPredicate implements Serializable { +public final class NonePredicate extends AbstractQuantifierPredicate { /** Serial version UID */ private static final long serialVersionUID = 2007613066565892961L; diff --git a/src/main/java/org/apache/commons/collections4/functors/NotPredicate.java b/src/main/java/org/apache/commons/collections4/functors/NotPredicate.java index 0600bfc11..97a58498f 100644 --- a/src/main/java/org/apache/commons/collections4/functors/NotPredicate.java +++ b/src/main/java/org/apache/commons/collections4/functors/NotPredicate.java @@ -26,7 +26,7 @@ import org.apache.commons.collections4.Predicate; * @since 3.0 * @version $Id$ */ -public final class NotPredicate implements Predicate, PredicateDecorator, Serializable { +public final class NotPredicate implements PredicateDecorator, Serializable { /** Serial version UID */ private static final long serialVersionUID = -2654603322338049674L; diff --git a/src/main/java/org/apache/commons/collections4/functors/NullIsExceptionPredicate.java b/src/main/java/org/apache/commons/collections4/functors/NullIsExceptionPredicate.java index fcd685ef9..744873e30 100644 --- a/src/main/java/org/apache/commons/collections4/functors/NullIsExceptionPredicate.java +++ b/src/main/java/org/apache/commons/collections4/functors/NullIsExceptionPredicate.java @@ -27,7 +27,7 @@ import org.apache.commons.collections4.Predicate; * @since 3.0 * @version $Id$ */ -public final class NullIsExceptionPredicate implements Predicate, PredicateDecorator, Serializable { +public final class NullIsExceptionPredicate implements PredicateDecorator, Serializable { /** Serial version UID */ private static final long serialVersionUID = 3243449850504576071L; diff --git a/src/main/java/org/apache/commons/collections4/functors/NullIsFalsePredicate.java b/src/main/java/org/apache/commons/collections4/functors/NullIsFalsePredicate.java index c18f43165..e3c45874b 100644 --- a/src/main/java/org/apache/commons/collections4/functors/NullIsFalsePredicate.java +++ b/src/main/java/org/apache/commons/collections4/functors/NullIsFalsePredicate.java @@ -26,7 +26,7 @@ import org.apache.commons.collections4.Predicate; * @since 3.0 * @version $Id$ */ -public final class NullIsFalsePredicate implements Predicate, PredicateDecorator, Serializable { +public final class NullIsFalsePredicate implements PredicateDecorator, Serializable { /** Serial version UID */ private static final long serialVersionUID = -2997501534564735525L; diff --git a/src/main/java/org/apache/commons/collections4/functors/NullIsTruePredicate.java b/src/main/java/org/apache/commons/collections4/functors/NullIsTruePredicate.java index 8eda7922c..ad4e63932 100644 --- a/src/main/java/org/apache/commons/collections4/functors/NullIsTruePredicate.java +++ b/src/main/java/org/apache/commons/collections4/functors/NullIsTruePredicate.java @@ -26,7 +26,7 @@ import org.apache.commons.collections4.Predicate; * @since 3.0 * @version $Id$ */ -public final class NullIsTruePredicate implements Predicate, PredicateDecorator, Serializable { +public final class NullIsTruePredicate implements PredicateDecorator, Serializable { /** Serial version UID */ private static final long serialVersionUID = -7625133768987126273L; diff --git a/src/main/java/org/apache/commons/collections4/functors/OnePredicate.java b/src/main/java/org/apache/commons/collections4/functors/OnePredicate.java index 5d960cb70..a2da0bc16 100644 --- a/src/main/java/org/apache/commons/collections4/functors/OnePredicate.java +++ b/src/main/java/org/apache/commons/collections4/functors/OnePredicate.java @@ -16,7 +16,6 @@ */ package org.apache.commons.collections4.functors; -import java.io.Serializable; import java.util.Collection; import org.apache.commons.collections4.Predicate; @@ -32,7 +31,7 @@ import org.apache.commons.collections4.Predicate; * @since 3.0 * @version $Id$ */ -public final class OnePredicate extends AbstractQuantifierPredicate implements Serializable { +public final class OnePredicate extends AbstractQuantifierPredicate { /** Serial version UID */ private static final long serialVersionUID = -8125389089924745785L; diff --git a/src/main/java/org/apache/commons/collections4/functors/OrPredicate.java b/src/main/java/org/apache/commons/collections4/functors/OrPredicate.java index e4042678f..2321ee599 100644 --- a/src/main/java/org/apache/commons/collections4/functors/OrPredicate.java +++ b/src/main/java/org/apache/commons/collections4/functors/OrPredicate.java @@ -26,7 +26,7 @@ import org.apache.commons.collections4.Predicate; * @since 3.0 * @version $Id$ */ -public final class OrPredicate implements Predicate, PredicateDecorator, Serializable { +public final class OrPredicate implements PredicateDecorator, Serializable { /** Serial version UID */ private static final long serialVersionUID = -8791518325735182855L; diff --git a/src/main/java/org/apache/commons/collections4/functors/TransformedPredicate.java b/src/main/java/org/apache/commons/collections4/functors/TransformedPredicate.java index 7ed072feb..cdeb5b49d 100644 --- a/src/main/java/org/apache/commons/collections4/functors/TransformedPredicate.java +++ b/src/main/java/org/apache/commons/collections4/functors/TransformedPredicate.java @@ -28,7 +28,7 @@ import org.apache.commons.collections4.Transformer; * @since 3.1 * @version $Id$ */ -public final class TransformedPredicate implements Predicate, PredicateDecorator, Serializable { +public final class TransformedPredicate implements PredicateDecorator, Serializable { /** Serial version UID */ private static final long serialVersionUID = -5596090919668315834L; diff --git a/src/main/java/org/apache/commons/collections4/iterators/ArrayListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/ArrayListIterator.java index 3f8b37795..5e6173daa 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/ArrayListIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/ArrayListIterator.java @@ -41,7 +41,7 @@ import org.apache.commons.collections4.ResettableListIterator; * @version $Id$ */ public class ArrayListIterator extends ArrayIterator - implements ListIterator, ResettableListIterator { + implements ResettableListIterator { /** * Holds the index of the last item returned by a call to next() diff --git a/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayIterator.java b/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayIterator.java index 0bf82be54..5cdf516ba 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayIterator.java @@ -33,8 +33,7 @@ import org.apache.commons.collections4.ResettableIterator; * @since 3.0 * @version $Id$ */ -public class ObjectArrayIterator - implements Iterator, ResettableIterator { +public class ObjectArrayIterator implements ResettableIterator { /** The array */ final E[] array; diff --git a/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayListIterator.java index 257bd8a1c..763bced0d 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayListIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayListIterator.java @@ -38,7 +38,7 @@ import org.apache.commons.collections4.ResettableListIterator; * @version $Id$ */ public class ObjectArrayListIterator extends ObjectArrayIterator - implements ListIterator, ResettableListIterator { + implements ResettableListIterator { /** * Holds the index of the last item returned by a call to next() diff --git a/src/main/java/org/apache/commons/collections4/iterators/SingletonIterator.java b/src/main/java/org/apache/commons/collections4/iterators/SingletonIterator.java index 32b97f376..042d06766 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/SingletonIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/SingletonIterator.java @@ -29,7 +29,7 @@ import org.apache.commons.collections4.ResettableIterator; * @version $Id$ */ public class SingletonIterator - implements Iterator, ResettableIterator { + implements ResettableIterator { /** Whether remove is allowed */ private final boolean removeAllowed; diff --git a/src/main/java/org/apache/commons/collections4/iterators/SingletonListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/SingletonListIterator.java index 5896cc6aa..247e4f1b9 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/SingletonListIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/SingletonListIterator.java @@ -28,7 +28,7 @@ import org.apache.commons.collections4.ResettableListIterator; * @since 2.1 * @version $Id$ */ -public class SingletonListIterator implements ListIterator, ResettableListIterator { +public class SingletonListIterator implements ResettableListIterator { private boolean beforeFirst = true; private boolean nextCalled = false; diff --git a/src/main/java/org/apache/commons/collections4/list/AbstractSerializableListDecorator.java b/src/main/java/org/apache/commons/collections4/list/AbstractSerializableListDecorator.java index a71f7293b..132237960 100644 --- a/src/main/java/org/apache/commons/collections4/list/AbstractSerializableListDecorator.java +++ b/src/main/java/org/apache/commons/collections4/list/AbstractSerializableListDecorator.java @@ -19,7 +19,6 @@ package org.apache.commons.collections4.list; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; -import java.io.Serializable; import java.util.Collection; import java.util.List; @@ -30,8 +29,7 @@ import java.util.List; * @version $Id$ */ public abstract class AbstractSerializableListDecorator - extends AbstractListDecorator - implements Serializable { + extends AbstractListDecorator { /** Serialization version */ private static final long serialVersionUID = 2684959196747496299L; diff --git a/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java b/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java index c603bf6af..70b6d5950 100644 --- a/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java +++ b/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java @@ -54,7 +54,7 @@ import org.apache.commons.collections4.collection.UnmodifiableCollection; */ public class FixedSizeMap extends AbstractMapDecorator - implements Map, BoundedMap, Serializable { + implements BoundedMap, Serializable { /** Serialization version */ private static final long serialVersionUID = 7450927208116179316L; diff --git a/src/main/java/org/apache/commons/collections4/map/FixedSizeSortedMap.java b/src/main/java/org/apache/commons/collections4/map/FixedSizeSortedMap.java index 62565a3cd..c1a4dea84 100644 --- a/src/main/java/org/apache/commons/collections4/map/FixedSizeSortedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/FixedSizeSortedMap.java @@ -56,7 +56,7 @@ import org.apache.commons.collections4.collection.UnmodifiableCollection; */ public class FixedSizeSortedMap extends AbstractSortedMapDecorator - implements SortedMap, BoundedMap, Serializable { + implements BoundedMap, Serializable { /** Serialization version */ private static final long serialVersionUID = 3126019624511683653L; diff --git a/src/main/java/org/apache/commons/collections4/map/LazyMap.java b/src/main/java/org/apache/commons/collections4/map/LazyMap.java index 4d730ae2a..25a5b1e24 100644 --- a/src/main/java/org/apache/commons/collections4/map/LazyMap.java +++ b/src/main/java/org/apache/commons/collections4/map/LazyMap.java @@ -59,7 +59,7 @@ import org.apache.commons.collections4.functors.FactoryTransformer; * @since 3.0 * @version $Id$ */ -public class LazyMap extends AbstractMapDecorator implements Map, Serializable { +public class LazyMap extends AbstractMapDecorator implements Serializable { /** Serialization version */ private static final long serialVersionUID = 7990956402564206740L; diff --git a/src/main/java/org/apache/commons/collections4/map/MultiKeyMap.java b/src/main/java/org/apache/commons/collections4/map/MultiKeyMap.java index 4853e1a96..ee8d4f127 100644 --- a/src/main/java/org/apache/commons/collections4/map/MultiKeyMap.java +++ b/src/main/java/org/apache/commons/collections4/map/MultiKeyMap.java @@ -22,7 +22,6 @@ import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.Map; -import org.apache.commons.collections4.IterableMap; import org.apache.commons.collections4.MapIterator; import org.apache.commons.collections4.keyvalue.MultiKey; @@ -76,7 +75,7 @@ import org.apache.commons.collections4.keyvalue.MultiKey; * @version $Id$ */ public class MultiKeyMap extends AbstractMapDecorator, V> - implements IterableMap, V>, Serializable, Cloneable { + implements Serializable, Cloneable { /** Serialisation version */ private static final long serialVersionUID = -1788199231038721040L; diff --git a/src/main/java/org/apache/commons/collections4/map/UnmodifiableMap.java b/src/main/java/org/apache/commons/collections4/map/UnmodifiableMap.java index 6cdc2fffe..46853f693 100644 --- a/src/main/java/org/apache/commons/collections4/map/UnmodifiableMap.java +++ b/src/main/java/org/apache/commons/collections4/map/UnmodifiableMap.java @@ -44,7 +44,7 @@ import org.apache.commons.collections4.iterators.UnmodifiableMapIterator; */ public final class UnmodifiableMap extends AbstractMapDecorator - implements IterableMap, Unmodifiable, Serializable { + implements Unmodifiable, Serializable { /** Serialization version */ private static final long serialVersionUID = 2737023427269031941L; diff --git a/src/main/java/org/apache/commons/collections4/queue/UnmodifiableQueue.java b/src/main/java/org/apache/commons/collections4/queue/UnmodifiableQueue.java index 8e7cc1518..3926f5dfb 100644 --- a/src/main/java/org/apache/commons/collections4/queue/UnmodifiableQueue.java +++ b/src/main/java/org/apache/commons/collections4/queue/UnmodifiableQueue.java @@ -19,7 +19,6 @@ package org.apache.commons.collections4.queue; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; -import java.io.Serializable; import java.util.Collection; import java.util.Iterator; import java.util.Queue; @@ -37,7 +36,7 @@ import org.apache.commons.collections4.iterators.UnmodifiableIterator; */ public final class UnmodifiableQueue extends AbstractQueueDecorator - implements Unmodifiable, Serializable { + implements Unmodifiable { /** Serialization version */ private static final long serialVersionUID = 1832948656215393357L; diff --git a/src/main/java/org/apache/commons/collections4/set/AbstractSerializableSetDecorator.java b/src/main/java/org/apache/commons/collections4/set/AbstractSerializableSetDecorator.java index 0e4e3d34b..b01c00710 100644 --- a/src/main/java/org/apache/commons/collections4/set/AbstractSerializableSetDecorator.java +++ b/src/main/java/org/apache/commons/collections4/set/AbstractSerializableSetDecorator.java @@ -19,7 +19,6 @@ package org.apache.commons.collections4.set; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; -import java.io.Serializable; import java.util.Collection; import java.util.Set; @@ -30,8 +29,7 @@ import java.util.Set; * @version $Id$ */ public abstract class AbstractSerializableSetDecorator - extends AbstractSetDecorator - implements Serializable { + extends AbstractSetDecorator { /** Serialization version */ private static final long serialVersionUID = 1229469966212206107L; diff --git a/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java b/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java index 0652d3f2c..6e960fa0f 100644 --- a/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java +++ b/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java @@ -51,8 +51,7 @@ import org.apache.commons.collections4.list.UnmodifiableList; * @version $Id$ */ public class ListOrderedSet - extends AbstractSerializableSetDecorator - implements Set { + extends AbstractSerializableSetDecorator { /** Serialization version */ private static final long serialVersionUID = -228664372470420141L; diff --git a/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java index ef533d7bf..00b88a8d9 100644 --- a/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java +++ b/src/main/java/org/apache/commons/collections4/set/UnmodifiableSortedSet.java @@ -19,7 +19,6 @@ package org.apache.commons.collections4.set; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; -import java.io.Serializable; import java.util.Collection; import java.util.Iterator; import java.util.SortedSet; @@ -39,7 +38,7 @@ import org.apache.commons.collections4.iterators.UnmodifiableIterator; */ public final class UnmodifiableSortedSet extends AbstractSortedSetDecorator - implements Unmodifiable, Serializable { + implements Unmodifiable { /** Serialization version */ private static final long serialVersionUID = -725356885467962424L; diff --git a/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java b/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java index b6f38e983..c92c4f307 100644 --- a/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java +++ b/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java @@ -43,7 +43,7 @@ import org.apache.commons.collections4.Trie; * @since 4.0 * @version $Id$ */ -abstract class AbstractPatriciaTrie extends AbstractBitwiseTrie implements Trie { +abstract class AbstractPatriciaTrie extends AbstractBitwiseTrie { private static final long serialVersionUID = 5155253417231339498L; diff --git a/src/main/java/org/apache/commons/collections4/trie/PatriciaTrie.java b/src/main/java/org/apache/commons/collections4/trie/PatriciaTrie.java index 350426503..12ec0e6fd 100644 --- a/src/main/java/org/apache/commons/collections4/trie/PatriciaTrie.java +++ b/src/main/java/org/apache/commons/collections4/trie/PatriciaTrie.java @@ -55,7 +55,7 @@ import org.apache.commons.collections4.trie.analyzer.StringKeyAnalyzer; * @since 4.0 * @version $Id$ */ -public class PatriciaTrie extends AbstractPatriciaTrie implements Trie { +public class PatriciaTrie extends AbstractPatriciaTrie { private static final long serialVersionUID = 4446367780901817838L;