8019466: Fix doclint issues in java.util.function
authordarcy
Sun, 30 Jun 2013 16:02:11 -0700
changeset 18584 430628bf6412
parent 18583 d678ac758734
child 18585 820a67f42c4c
8019466: Fix doclint issues in java.util.function Reviewed-by: briangoetz
jdk/src/share/classes/java/util/function/BinaryOperator.java
jdk/src/share/classes/java/util/function/Function.java
jdk/src/share/classes/java/util/function/UnaryOperator.java
--- a/jdk/src/share/classes/java/util/function/BinaryOperator.java	Sat Jun 29 06:12:28 2013 -0400
+++ b/jdk/src/share/classes/java/util/function/BinaryOperator.java	Sun Jun 30 16:02:11 2013 -0700
@@ -42,6 +42,7 @@
      * Returns a {@link BinaryOperator} which returns the lesser of two elements
      * according to the specified {@code Comparator}
      *
+     * @param <T> the type of values to be compared and returned
      * @param  comparator a {@code Comparator} for comparing the two values
      * @return a {@code BinaryOperator} which returns the lesser of its operands,
      *         according to the supplied {@code Comparator}
@@ -56,6 +57,7 @@
      * Returns a {@link BinaryOperator} which returns the greater of two elements
      * according to the specified {@code Comparator}
      *
+     * @param <T> the type of values to be compared and returned
      * @param  comparator a {@code Comparator} for comparing the two values
      * @return a {@code BinaryOperator} which returns the greater of its operands,
      *         according to the supplied {@code Comparator}
--- a/jdk/src/share/classes/java/util/function/Function.java	Sat Jun 29 06:12:28 2013 -0400
+++ b/jdk/src/share/classes/java/util/function/Function.java	Sun Jun 30 16:02:11 2013 -0700
@@ -87,6 +87,7 @@
      * Returns a {@code Function} whose {@code apply} method returns its input.
      *
      * @param <T> the type of the input and output objects to the function
+     * @return a {@code Function} whose {@code apply} method returns its input
      */
     static <T> Function<T, T> identity() {
         return t -> t;
--- a/jdk/src/share/classes/java/util/function/UnaryOperator.java	Sat Jun 29 06:12:28 2013 -0400
+++ b/jdk/src/share/classes/java/util/function/UnaryOperator.java	Sun Jun 30 16:02:11 2013 -0700
@@ -40,6 +40,7 @@
     /**
      * Returns a unary operator that provides its input value as the result.
      *
+     * @param <T> the type of the input and output objects to the function
      * @return a unary operator that provides its input value as the result
      */
     static <T> UnaryOperator<T> identity() {