Skip to content

Commit

Permalink
Declutter: Tests don't need Javadoc @SInCE tags
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 20, 2024
1 parent 01bd494 commit 190815d
Show file tree
Hide file tree
Showing 105 changed files with 4 additions and 110 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
/**
* Tests the ClosureUtils class.
*
* @since 3.0
*/
public class ClosureUtilsTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
/**
* Tests the org.apache.commons.collections.FactoryUtils class.
*
* @since 3.0
*/
public class FactoryUtilsTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
/**
* Tests for FluentIterable.
*
* @since 4.1
*/
public class FluentIterableTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
import java.util.Map;
import java.util.function.Supplier;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

import org.apache.commons.collections4.list.TreeList;
import org.apache.commons.collections4.map.HashedMap;
import org.apache.commons.collections4.map.LRUMap;
Expand All @@ -38,16 +42,11 @@
import com.google.common.collect.testing.features.ListFeature;
import com.google.common.collect.testing.features.MapFeature;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
* This test uses Google's Guava Testlib testing libraries to validate the
* contract of collection classes in Commons Collections. This was introduced
* after COLLECTIONS-802, where the issue reported was found with Testlib.
*
* @since 4.5.0
* @see <a href="https://github.com/google/guava/tree/master/guava-testlib">https://github.com/google/guava/tree/master/guava-testlib</a>
* @see <a href="https://issues.apache.org/jira/browse/COLLECTIONS-802">https://issues.apache.org/jira/browse/COLLECTIONS-802</a>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
/**
* Tests for IterableUtils.
*
* @since 4.1
*/
public class IterableUtilsTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
/**
* Tests for MultiMapUtils
*
* @since 4.1
*/
public class MultiMapUtilsTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

/**
* Tests for MultiSetUtils.
* @since 4.2
*/
public class MultiSetUtilsTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
/**
* Tests the PredicateUtils class.
*
* @since 3.0
*/
@SuppressWarnings("boxing")
public class PredicateUtilsTest extends AbstractPredicateTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
/**
* Tests for {@link TransformedSplitMap}
*
* @since 4.0
*/
@SuppressWarnings("boxing")
public class SplitMapUtilsTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
/**
* Tests the TransformerUtils class.
*
* @since 3.0
*/
public class TransformerUtilsTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
* {@link org.apache.commons.collections4.SortedBag SortedBag}
* methods and contracts.
*
* @since 3.0
*/
public abstract class AbstractSortedBagTest<T> extends AbstractBagTest<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
* Note: This test is mainly for serialization support, the CollectionBag decorator
* is extensively used and tested in AbstractBagTest.
*
* @since 4.0
*/
public class CollectionBagTest<T> extends AbstractCollectionTest<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
* Note: This test is mainly for serialization support, the CollectionSortedBag decorator
* is extensively used and tested in AbstractSortedBagTest.
*
* @since 4.0
*/
public class CollectionSortedBagTest<T> extends AbstractCollectionTest<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
* Extension of {@link AbstractBagTest} for exercising the {@link PredicatedBag}
* implementation.
*
* @since 3.0
*/
public class PredicatedBagTest<T> extends AbstractBagTest<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
* Extension of {@link AbstractSortedBagTest} for exercising the {@link PredicatedSortedBag}
* implementation.
*
* @since 3.0
*/
public class PredicatedSortedBagTest<T> extends AbstractSortedBagTest<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* Extension of {@link AbstractBagTest} for exercising the {@link SynchronizedBag}
* implementation.
*
* @since 4.0
*/
public class SynchronizedBagTest<T> extends AbstractBagTest<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
* Extension of {@link AbstractBagTest} for exercising the {@link TransformedBag}
* implementation.
*
* @since 3.0
*/
public class TransformedBagTest<T> extends AbstractBagTest<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* Extension of {@link AbstractSortedBagTest} for exercising the {@link TransformedSortedBag}
* implementation.
*
* @since 3.0
*/
public class TransformedSortedBagTest<T> extends AbstractSortedBagTest<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
* Extension of {@link AbstractCollectionTest} for exercising the
* {@link UnmodifiableBag} implementation.
*
* @since 4.0
*/
public class UnmodifiableBagTest<E> extends AbstractBagTest<E> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
* Extension of {@link AbstractCollectionTest} for exercising the
* {@link UnmodifiableSortedBag} implementation.
*
* @since 4.0
*/
public class UnmodifiableSortedBagTest<E> extends AbstractSortedBagTest<E> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,6 @@ public void testCollectionRemoveAll() {

/**
* Tests {@link Collection#removeIf(Predicate)}.
* @since 4.4
*/
@Test
public void testCollectionRemoveIf() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
* Extension of {@link AbstractCollectionTest} for exercising the
* {@link CompositeCollection} implementation.
*
* @since 3.0
*/
public class CompositeCollectionTest<E> extends AbstractCollectionTest<E> {

Expand Down Expand Up @@ -373,7 +372,6 @@ public void testRemoveComposited() {
}

/**
* @since 4.4
*/
@Test
@SuppressWarnings("unchecked")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
* Extension of {@link AbstractCollectionTest} for exercising the
* {@link IndexedCollection} implementation.
*
* @since 4.0
*/
@SuppressWarnings("boxing")
public class IndexedCollectionTest extends AbstractCollectionTest<String> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
/**
* Tests the PredicatedCollection.Builder class.
*
* @since 4.1
*/
public class PredicatedCollectionBuilderTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
* Extension of {@link AbstractCollectionTest} for exercising the
* {@link PredicatedCollection} implementation.
*
* @since 3.0
*/
public class PredicatedCollectionTest<E> extends AbstractCollectionTest<E> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
* Extension of {@link AbstractCollectionTest} for exercising the
* {@link SynchronizedCollection} implementation.
*
* @since 3.1
*/
public class SynchronizedCollectionTest<E> extends AbstractCollectionTest<E> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
* Extension of {@link AbstractCollectionTest} for exercising the {@link TransformedCollection}
* implementation.
*
* @since 3.0
*/
public class TransformedCollectionTest extends AbstractCollectionTest<Object> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
* Extension of {@link AbstractCollectionTest} for exercising the
* {@link UnmodifiableCollection} implementation.
*
* @since 3.0
*/
public class UnmodifiableCollectionTest<E> extends AbstractCollectionTest<E> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
/**
* Base class for tests of AnyPredicate, AllPredicate, and OnePredicate.
*
* @since 3.0
*/
public abstract class AbstractAnyAllOnePredicateTest<T> extends AbstractCompositePredicateTest<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
/**
* Base class for tests of composite predicates.
*
* @since 3.0
*/
public abstract class AbstractCompositePredicateTest<T> extends AbstractMockPredicateTest<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
* Base class for tests of predicates which delegate to other predicates when evaluating an object. This class
* provides methods to create and verify mock predicates to which to delegate.
*
* @since 3.0
*/
public abstract class AbstractMockPredicateTest<T> {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
/**
* Tests the org.apache.commons.collections.functors.AllPredicate class.
*
* @since 3.0
*/
@SuppressWarnings("boxing")
public class AllPredicateTest extends AbstractAnyAllOnePredicateTest<Integer> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
* They must also specify certain details of how the iterator operates by
* overriding the supportsXxx() methods if necessary.
*
* @since 3.0
*/
public abstract class AbstractIteratorTest<E> extends AbstractObjectTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
* They must also specify certain details of how the list iterator operates by
* overriding the supportsXxx() methods if necessary.
*
* @since 3.0
*/
public abstract class AbstractListIteratorTest<E> extends AbstractIteratorTest<E> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
* They must also specify certain details of how the list iterator operates by
* overriding the supportsXxx() methods if necessary.
*
* @since 3.0
*/
public abstract class AbstractMapIteratorTest<K, V> extends AbstractIteratorTest<K> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
* They must also specify certain details of how the list iterator operates by
* overriding the supportsXxx() methods if necessary.
*
* @since 3.0
*/
public abstract class AbstractOrderedMapIteratorTest<K, V> extends AbstractMapIteratorTest<K, V> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
/**
* Test class for PermutationIterator.
*
* @since 4.0
*/
public class PermutationIteratorTest extends AbstractIteratorTest<List<Character>> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public final class ObjectToStringComparator implements Comparator<Object>, Seria
/**
* Singleton instance.
*
* @since 4.5
*/
public static final ObjectToStringComparator INSTANCE = new ObjectToStringComparator();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
* {@link #testConstructors()} to test the constructors of the Map.Entry
* type being tested.
*
* @since 3.0
*/
public abstract class AbstractMapEntryTest<K, V> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
/**
* Test the DefaultKeyValue class.
*
* @since 3.0
*/
public class DefaultKeyValueTest<K, V> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
/**
* Test the DefaultMapEntry class.
*
* @since 3.0
*/
public class DefaultMapEntryTest<K, V> extends AbstractMapEntryTest<K, V> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
/**
* Test the TiedMapEntry class.
*
* @since 3.0
*/
public class TiedMapEntryTest<K, V> extends AbstractMapEntryTest<K, V> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
/**
* Test the UnmodifiableMapEntry class.
*
* @since 3.0
*/
public class UnmodifiableMapEntryTest<K, V> extends AbstractMapEntryTest<K, V> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
* Extension of {@link AbstractListTest} for exercising the {@link FixedSizeList}
* implementation.
*
* @since 3.0
*/
public class FixedSizeListTest<E> extends AbstractListTest<E> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
/**
* Extension of {@link AbstractListTest} for exercising the {@link GrowthList}.
*
* @since 3.2
*/
public class GrowthListTest<E> extends AbstractListTest<E> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
* Extension of {@link AbstractListTest} for exercising the
* {@link PredicatedList} implementation.
*
* @since 3.0
*/
public class PredicatedListTest<E> extends AbstractListTest<E> {

Expand Down

0 comments on commit 190815d

Please sign in to comment.