diff --git a/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java b/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java index 5b858930b..7c52b6c87 100644 --- a/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java +++ b/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java @@ -115,15 +115,15 @@ public final class ImmutablePair extends Pair { } /** - *

Creates an immutable pair from an existing pair.

+ *

Creates an immutable pair from a map entry.

* *

This factory allows the pair to be created using inference to * obtain the generic types.

* * @param the left element type * @param the right element type - * @param pair the existing pair. - * @return a pair formed from the two parameters, not null + * @param pair the existing map entry. + * @return a pair formed from the map entry * @since 3.10 */ public static ImmutablePair of(final Map.Entry pair) { diff --git a/src/main/java/org/apache/commons/lang3/tuple/MutablePair.java b/src/main/java/org/apache/commons/lang3/tuple/MutablePair.java index cc23f7f5b..7347951f9 100644 --- a/src/main/java/org/apache/commons/lang3/tuple/MutablePair.java +++ b/src/main/java/org/apache/commons/lang3/tuple/MutablePair.java @@ -75,15 +75,15 @@ public class MutablePair extends Pair { } /** - *

Creates a mutable pair from an existing pair.

+ *

Creates a mutable pair from a map entry.

* *

This factory allows the pair to be created using inference to * obtain the generic types.

* * @param the left element type * @param the right element type - * @param pair the existing pair. - * @return a pair formed from the two parameters, not null + * @param pair the existing map entry. + * @return a pair formed from the map entry */ public static MutablePair of(final Map.Entry pair) { final L left; diff --git a/src/main/java/org/apache/commons/lang3/tuple/Pair.java b/src/main/java/org/apache/commons/lang3/tuple/Pair.java index 628213ce1..0d5288113 100644 --- a/src/main/java/org/apache/commons/lang3/tuple/Pair.java +++ b/src/main/java/org/apache/commons/lang3/tuple/Pair.java @@ -105,15 +105,15 @@ public abstract class Pair implements Map.Entry, ComparableCreates an immutable pair from an existing pair.

+ *

Creates an immutable pair from a map entry.

* *

This factory allows the pair to be created using inference to * obtain the generic types.

* * @param the left element type * @param the right element type - * @param pair the existing pair. - * @return a pair formed from the two parameters, not null + * @param pair the map entry. + * @return a pair formed from the map entry * @since 3.10 */ public static Pair of(final Map.Entry pair) {