src/share/classes/java/lang/StrictMath.java

Print this page

        

@@ -363,11 +363,11 @@
      * Internal method to share logic between floor and ceil.
      *
      * @param a the value to be floored or ceiled
      * @param negativeBoundary result for values in (-1, 0)
      * @param positiveBoundary result for values in (0, 1)
-     * @param increment value to add when the argument is non-integral
+     * @param sign the sign of the result
      */
     private static double floorOrCeil(double a,
                                       double negativeBoundary,
                                       double positiveBoundary,
                                       double sign) {

@@ -809,11 +809,11 @@
      * throwing an exception if the value overflows an {@code int}.
      *
      * @param value the long value
      * @return the argument as an int
      * @throws ArithmeticException if the {@code argument} overflows an int
-     * @see Math#toIntExact(int)
+     * @see Math#toIntExact(long)
      * @since 1.8
      */
     public static int toIntExact(long value) {
         return Math.toIntExact(value);
     }