From 3ec21db2659d454de0f5ec1b76b5ed72112fd0cd Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 15 Jun 2018 16:33:45 -0600 Subject: [PATCH] Make Java 11 Javadoc happy by replacing tags with standard Javadoc tags. --- .../java/org/apache/commons/collections4/CollectionUtils.java | 4 ++-- src/main/java/org/apache/commons/collections4/Get.java | 2 +- src/main/java/org/apache/commons/collections4/ListUtils.java | 4 ++-- src/main/java/org/apache/commons/collections4/MultiSet.java | 2 +- src/main/java/org/apache/commons/collections4/Put.java | 4 ++-- .../org/apache/commons/collections4/map/CompositeMap.java | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/CollectionUtils.java b/src/main/java/org/apache/commons/collections4/CollectionUtils.java index 99bf3281d..f498603b0 100644 --- a/src/main/java/org/apache/commons/collections4/CollectionUtils.java +++ b/src/main/java/org/apache/commons/collections4/CollectionUtils.java @@ -264,8 +264,8 @@ public class CollectionUtils { *

* The cardinality of each element e in the returned * {@link Collection} will be equal to - * max(cardinality(e,a),cardinality(e,b)) - min(cardinality(e,a), - * cardinality(e,b)). + * max(cardinality(e,a),cardinality(e,b)) - min(cardinality(e,a), + * cardinality(e,b)). *

* This is equivalent to * {@code {@link #subtract subtract}({@link #union union(a,b)},{@link #intersection intersection(a,b)})} diff --git a/src/main/java/org/apache/commons/collections4/Get.java b/src/main/java/org/apache/commons/collections4/Get.java index 61663a9c4..1892da8e2 100644 --- a/src/main/java/org/apache/commons/collections4/Get.java +++ b/src/main/java/org/apache/commons/collections4/Get.java @@ -63,7 +63,7 @@ public interface Get { /** * @param key key whose mapping is to be removed from the map * @return the previous value associated with key, or - * null if there was no mapping for key. + * null if there was no mapping for key. * @see java.util.Map#remove(Object) */ V remove(Object key); diff --git a/src/main/java/org/apache/commons/collections4/ListUtils.java b/src/main/java/org/apache/commons/collections4/ListUtils.java index 4d528473f..ec268b773 100644 --- a/src/main/java/org/apache/commons/collections4/ListUtils.java +++ b/src/main/java/org/apache/commons/collections4/ListUtils.java @@ -219,8 +219,8 @@ public class ListUtils { * {@code true} if and only if both * lists have the same size, and all corresponding pairs of elements in * the two lists are equal. (Two elements {@code e1} and - * {@code e2} are equal if (e1==null ? e2==null : - * e1.equals(e2)).) In other words, two lists are defined to be + * {@code e2} are equal if (e1==null ? e2==null : + * e1.equals(e2)).) In other words, two lists are defined to be * equal if they contain the same elements in the same order. This * definition ensures that the equals method works properly across * different implementations of the {@code List} interface. diff --git a/src/main/java/org/apache/commons/collections4/MultiSet.java b/src/main/java/org/apache/commons/collections4/MultiSet.java index 835eb6305..40f1f6563 100644 --- a/src/main/java/org/apache/commons/collections4/MultiSet.java +++ b/src/main/java/org/apache/commons/collections4/MultiSet.java @@ -240,7 +240,7 @@ public interface MultiSet extends Collection { * and the two entries represent the same element with the same * number of occurrences. *

- * More formally, two entries e1 and e2 represent + * More formally, two entries e1 and e2 represent * the same mapping if *

          *     (e1.getElement()==null ? e2.getElement()==null
diff --git a/src/main/java/org/apache/commons/collections4/Put.java b/src/main/java/org/apache/commons/collections4/Put.java
index ed0ec1788..1d300fd59 100644
--- a/src/main/java/org/apache/commons/collections4/Put.java
+++ b/src/main/java/org/apache/commons/collections4/Put.java
@@ -47,9 +47,9 @@ public interface Put {
      * @param key key with which the specified value is to be associated
      * @param value value to be associated with the specified key
      * @return the previous value associated with key, or
-     *         null if there was no mapping for key.
+     *         null if there was no mapping for key.
      *         (A null return can also indicate that the map
-     *         previously associated null with key,
+     *         previously associated null with key,
      *         if the implementation supports null values.)
      * @see Map#put(Object, Object)
      */
diff --git a/src/main/java/org/apache/commons/collections4/map/CompositeMap.java b/src/main/java/org/apache/commons/collections4/map/CompositeMap.java
index 04f463ec4..d96719930 100644
--- a/src/main/java/org/apache/commons/collections4/map/CompositeMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/CompositeMap.java
@@ -268,8 +268,8 @@ public class CompositeMap extends AbstractIterableMap implements Ser
      * operation may be used to distinguish these two cases.
      *
      * 

More formally, if this map contains a mapping from a key - * {@code k} to a value {@code v} such that (key==null ? k==null : - * key.equals(k)), then this method returns {@code v}; otherwise + * {@code k} to a value {@code v} such that (key==null ? k==null : + * key.equals(k)), then this method returns {@code v}; otherwise * it returns {@code null}. (There can be at most one such mapping.) * * @param key key whose associated value is to be returned.