8075560: Typo in Javadoc for java.util.Optional.equals()
authorpsandoz
Mon, 23 Mar 2015 14:20:39 +0100
changeset 29599 e2c48b046f91
parent 29598 d437190d9f9a
child 29602 47f15b73f5e3
8075560: Typo in Javadoc for java.util.Optional.equals() Reviewed-by: alanb
jdk/src/java.base/share/classes/java/util/Optional.java
jdk/src/java.base/share/classes/java/util/OptionalDouble.java
jdk/src/java.base/share/classes/java/util/OptionalInt.java
jdk/src/java.base/share/classes/java/util/OptionalLong.java
--- a/jdk/src/java.base/share/classes/java/util/Optional.java	Mon Mar 23 02:29:47 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/util/Optional.java	Mon Mar 23 14:20:39 2015 +0100
@@ -346,7 +346,7 @@
      * </ul>
      *
      * @param obj an object to be tested for equality
-     * @return {code true} if the other object is "equal to" this object
+     * @return {@code true} if the other object is "equal to" this object
      * otherwise {@code false}
      */
     @Override
--- a/jdk/src/java.base/share/classes/java/util/OptionalDouble.java	Mon Mar 23 02:29:47 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/util/OptionalDouble.java	Mon Mar 23 14:20:39 2015 +0100
@@ -244,7 +244,7 @@
      * </ul>
      *
      * @param obj an object to be tested for equality
-     * @return {code true} if the other object is "equal to" this object
+     * @return {@code true} if the other object is "equal to" this object
      * otherwise {@code false}
      */
     @Override
--- a/jdk/src/java.base/share/classes/java/util/OptionalInt.java	Mon Mar 23 02:29:47 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/util/OptionalInt.java	Mon Mar 23 14:20:39 2015 +0100
@@ -244,7 +244,7 @@
      * </ul>
      *
      * @param obj an object to be tested for equality
-     * @return {code true} if the other object is "equal to" this object
+     * @return {@code true} if the other object is "equal to" this object
      * otherwise {@code false}
      */
     @Override
--- a/jdk/src/java.base/share/classes/java/util/OptionalLong.java	Mon Mar 23 02:29:47 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/util/OptionalLong.java	Mon Mar 23 14:20:39 2015 +0100
@@ -244,7 +244,7 @@
      * </ul>
      *
      * @param obj an object to be tested for equality
-     * @return {code true} if the other object is "equal to" this object
+     * @return {@code true} if the other object is "equal to" this object
      * otherwise {@code false}
      */
     @Override