Hi,

The patch below fixes a silly typo in the JavaDoc of the Optional*.equals 
methods.

Paul.

--- a/src/java.base/share/classes/java/util/Optional.java       Mon Mar 16 
17:44:34 2015 +0100
+++ b/src/java.base/share/classes/java/util/Optional.java       Fri Mar 20 
09:36:13 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
diff -r 145ffc3b8533 src/java.base/share/classes/java/util/OptionalDouble.java
--- a/src/java.base/share/classes/java/util/OptionalDouble.java Mon Mar 16 
17:44:34 2015 +0100
+++ b/src/java.base/share/classes/java/util/OptionalDouble.java Fri Mar 20 
09:36:13 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
diff -r 145ffc3b8533 src/java.base/share/classes/java/util/OptionalInt.java
--- a/src/java.base/share/classes/java/util/OptionalInt.java    Mon Mar 16 
17:44:34 2015 +0100
+++ b/src/java.base/share/classes/java/util/OptionalInt.java    Fri Mar 20 
09:36:13 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
diff -r 145ffc3b8533 src/java.base/share/classes/java/util/OptionalLong.java
--- a/src/java.base/share/classes/java/util/OptionalLong.java   Mon Mar 16 
17:44:34 2015 +0100
+++ b/src/java.base/share/classes/java/util/OptionalLong.java   Fri Mar 20 
09:36:13 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

Reply via email to