From 0b1db833f2d91093a52b547c42d3bac1974f5af1 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Sun, 3 Jul 2011 08:30:12 +0000 Subject: [PATCH] Adding missing private method javadoc and removing 'unused' import in favour of fully qualified javadoc link git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1142401 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/lang3/Range.java | 10 ++++++++-- src/main/java/org/apache/commons/lang3/tuple/Pair.java | 3 +-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/Range.java b/src/main/java/org/apache/commons/lang3/Range.java index abe1c378b..49cd8fda3 100644 --- a/src/main/java/org/apache/commons/lang3/Range.java +++ b/src/main/java/org/apache/commons/lang3/Range.java @@ -18,7 +18,6 @@ import java.io.Serializable; import java.util.Comparator; -import java.util.Formattable; /** *

An immutable range of objects from a minimum to maximum point inclusive.

@@ -442,7 +441,7 @@ public String toString() { /** *

Formats the receiver using the given format.

* - *

This uses {@link Formattable} to perform the formatting. Three variables may + *

This uses {@link java.util.Formattable} to perform the formatting. Three variables may * be used to embed the minimum, maximum and comparator. * Use {@code %1$s} for the minimum element, {@code %2$s} for the maximum element * and {@code %3$s} for the comparator. @@ -459,6 +458,13 @@ public String toString(String format) { @SuppressWarnings({"rawtypes", "unchecked"}) private enum ComparableComparator implements Comparator { INSTANCE; + /** + * Comparable based compare implementation. + * + * @param obj1 left hand side of comparison + * @param obj2 right hand side of comparison + * @return negative, 0, positive comparison value + */ public int compare(Object obj1, Object obj2) { return ((Comparable) obj1).compareTo(obj2); } 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 7948db907..3a9279e16 100644 --- a/src/main/java/org/apache/commons/lang3/tuple/Pair.java +++ b/src/main/java/org/apache/commons/lang3/tuple/Pair.java @@ -17,7 +17,6 @@ package org.apache.commons.lang3.tuple; import java.io.Serializable; -import java.util.Formattable; import java.util.Map; import org.apache.commons.lang3.ObjectUtils; @@ -162,7 +161,7 @@ public String toString() { /** *

Formats the receiver using the given format.

* - *

This uses {@link Formattable} to perform the formatting. Two variables may + *

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)}.