changeset 39656:25f808289769

8161413: Math.fma javadoc doesn't have @since 9 Summary: Add @since tag for float and double versions of fma(). Reviewed-by: rriggs
author bpb
date Fri, 15 Jul 2016 12:30:10 -0700
parents 909e84883de9
children 90ff5a56fe54
files jdk/src/java.base/share/classes/java/lang/Math.java jdk/src/java.base/share/classes/java/lang/StrictMath.java
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/java.base/share/classes/java/lang/Math.java	Fri Jul 15 17:31:30 2016 +0100
+++ b/jdk/src/java.base/share/classes/java/lang/Math.java	Fri Jul 15 12:30:10 2016 -0700
@@ -1613,6 +1613,8 @@
      * @return (<i>a</i>&nbsp;&times;&nbsp;<i>b</i>&nbsp;+&nbsp;<i>c</i>)
      * computed, as if with unlimited range and precision, and rounded
      * once to the nearest {@code double} value
+     *
+     * @since 9
      */
     // @HotSpotIntrinsicCandidate
     public static double fma(double a, double b, double c) {
@@ -1728,6 +1730,8 @@
      * @return (<i>a</i>&nbsp;&times;&nbsp;<i>b</i>&nbsp;+&nbsp;<i>c</i>)
      * computed, as if with unlimited range and precision, and rounded
      * once to the nearest {@code float} value
+     *
+     * @since 9
      */
     // @HotSpotIntrinsicCandidate
     public static float fma(float a, float b, float c) {
--- a/jdk/src/java.base/share/classes/java/lang/StrictMath.java	Fri Jul 15 17:31:30 2016 +0100
+++ b/jdk/src/java.base/share/classes/java/lang/StrictMath.java	Fri Jul 15 12:30:10 2016 -0700
@@ -1276,6 +1276,8 @@
      * @return (<i>a</i>&nbsp;&times;&nbsp;<i>b</i>&nbsp;+&nbsp;<i>c</i>)
      * computed, as if with unlimited range and precision, and rounded
      * once to the nearest {@code double} value
+     *
+     * @since 9
      */
     public static double fma(double a, double b, double c) {
         return Math.fma(a, b, c);
@@ -1328,6 +1330,8 @@
      * @return (<i>a</i>&nbsp;&times;&nbsp;<i>b</i>&nbsp;+&nbsp;<i>c</i>)
      * computed, as if with unlimited range and precision, and rounded
      * once to the nearest {@code float} value
+     *
+     * @since 9
      */
     public static float fma(float a, float b, float c) {
         return Math.fma(a, b, c);