commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1142401 - in /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3: Range.java tuple/Pair.java
Date Sun, 03 Jul 2011 08:30:13 GMT
Author: bayard
Date: Sun Jul  3 08:30:12 2011
New Revision: 1142401

URL: http://svn.apache.org/viewvc?rev=1142401&view=rev
Log:
Adding missing private method javadoc and removing 'unused' import in favour of fully qualified
javadoc link

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Range.java
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/Pair.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Range.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Range.java?rev=1142401&r1=1142400&r2=1142401&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Range.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Range.java Sun Jul  3
08:30:12 2011
@@ -18,7 +18,6 @@ package org.apache.commons.lang3;
 
 import java.io.Serializable;
 import java.util.Comparator;
-import java.util.Formattable;
 
 /**
  * <p>An immutable range of objects from a minimum to maximum point inclusive.</p>
@@ -442,7 +441,7 @@ public final class Range<T> implements S
     /**
      * <p>Formats the receiver using the given format.</p>
      * 
-     * <p>This uses {@link Formattable} to perform the formatting. Three variables
may
+     * <p>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 final class Range<T> implements S
     @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);
         }

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/Pair.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/Pair.java?rev=1142401&r1=1142400&r2=1142401&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/Pair.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/Pair.java Sun Jul
 3 08:30:12 2011
@@ -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 abstract class Pair<L, R> impleme
     /**
      * <p>Formats the receiver using the given format.</p>
      * 
-     * <p>This uses {@link Formattable} to perform the formatting. Two variables may
+     * <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>



Mime
View raw message