You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/09/04 14:05:24 UTC
(commons-lang) branch master updated: Javadoc
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 586358fb0 Javadoc
586358fb0 is described below
commit 586358fb0eb34a76015f252afffe7c347bf229eb
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Sep 4 10:05:19 2024 -0400
Javadoc
---
src/main/java/org/apache/commons/lang3/tuple/Pair.java | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
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 059304c6a..6be6316fe 100644
--- a/src/main/java/org/apache/commons/lang3/tuple/Pair.java
+++ b/src/main/java/org/apache/commons/lang3/tuple/Pair.java
@@ -253,13 +253,14 @@ public abstract class Pair<L, R> implements Map.Entry<L, R>, Comparable<Pair<L,
/**
* Formats the receiver using the given format.
*
- * <p>This uses {@link java.util.Formattable} to perform the formatting. Two variables may
- * be used to embed the left and right elements. Use {@code %1$s} for the left
- * element (key) and {@code %2$s} for the right element (value).
- * The default format used by {@code toString()} is {@code (%1$s,%2$s)}.</p>
+ * <p>
+ * This uses {@link String#format(String, Object...)} to the format. Two variables may be used to embed the left and right elements. Use {@code %1$s} for
+ * the left element (key) and {@code %2$s} for the right element (value).
+ * </p>
*
- * @param format the format string, optionally containing {@code %1$s} and {@code %2$s}, not null
+ * @param format the format string, optionally containing {@code %1$s} and {@code %2$s}, not null.
* @return the formatted string, not null
+ * @see String#format(String, Object...)
*/
public String toString(final String format) {
return String.format(format, getLeft(), getRight());