Cleanup of some doclint warnings in java.lang (original) (raw)

Joe Darcy joe.darcy at oracle.com
Mon Jun 17 03:48:02 UTC 2013


Hello,

Please review the patch below which resolves a subset of the doclint warnings in java.lang.

Thanks,

-Joe

diff -r 45a3584bfacf src/share/classes/java/lang/Boolean.java --- a/src/share/classes/java/lang/Boolean.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/Boolean.java Sun Jun 16 20:46:52 2013 -0700 @@ -1,5 +1,5 @@ /*

diff -r 45a3584bfacf src/share/classes/java/lang/Byte.java --- a/src/share/classes/java/lang/Byte.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/Byte.java Sun Jun 16 20:46:52 2013 -0700 @@ -1,5 +1,5 @@ /*

diff -r 45a3584bfacf src/share/classes/java/lang/Class.java --- a/src/share/classes/java/lang/Class.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/Class.java Sun Jun 16 20:46:52 2013 -0700 @@ -3141,6 +3141,8 @@ * could not be checked at runtime (because generic types are implemented * by erasure). *

@@ -3296,6 +3298,7 @@ * If this Class represents either the Object class, an interface type, an * array type, a primitive type, or void, the return value is null. *

@@ -3327,6 +3330,7 @@ * If this Class represents either the Object class, an array type, a * primitive type, or void, the return value is an array of length 0. *

diff -r 45a3584bfacf src/share/classes/java/lang/Double.java --- a/src/share/classes/java/lang/Double.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/Double.java Sun Jun 16 20:46:52 2013 -0700 @@ -453,7 +453,6 @@ * a {@code NumberFormatException} be thrown, the regular * expression below can be used to screen the input string: *

@@ -500,7 +499,6 @@ * // Perform suitable alternative action * } *

@@ -756,9 +754,9 @@ * Returns a hash code for a {@code double} value; compatible with * {@code Double.hashCode()}. *

diff -r 45a3584bfacf src/share/classes/java/lang/Float.java --- a/src/share/classes/java/lang/Float.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/Float.java Sun Jun 16 20:46:52 2013 -0700 @@ -664,9 +664,9 @@ * Returns a hash code for a {@code float} value; compatible with * {@code Float.hashCode()}. *

diff -r 45a3584bfacf src/share/classes/java/lang/Integer.java --- a/src/share/classes/java/lang/Integer.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/Integer.java Sun Jun 16 20:46:52 2013 -0700 @@ -947,6 +947,7 @@ * Returns a hash code for a {@code int} value; compatible with * {@code Integer.hashCode()}. *

@@ -1332,6 +1333,7 @@ * one-bits in its two's complement binary representation, that is, if it * is equal to zero. *

@@ -1354,6 +1356,7 @@ * one-bits in its two's complement binary representation, that is, if it * is equal to zero. *

@@ -1378,6 +1381,7 @@ *

  • ceil(log2(x)) = {@code 32 - numberOfLeadingZeros(x - 1)} * *
  • representation * of the specified {@code int} value, or 32 if the value @@ -1404,6 +1408,7 @@ * one-bits in its two's complement representation, in other words if it is * equal to zero. *

    ("rightmost") * one-bit in the two's complement binary representation of the * specified {@code int} value, or 32 if the value is equal @@ -1427,6 +1432,7 @@ * representation of the specified {@code int} value. This function is * sometimes referred to as the population count. *

    @@ -1454,6 +1460,8 @@ * ignored, even if the distance is negative: {@code rotateLeft(val, * distance) == rotateLeft(val, distance & 0x1F)}. *

    @@ -1476,6 +1484,8 @@ * ignored, even if the distance is negative: {@code rotateRight(val, * distance) == rotateRight(val, distance & 0x1F)}. *

    @@ -1490,6 +1500,7 @@ * two's complement binary representation of the specified {@code int} * value. *

    @@ -1509,6 +1520,7 @@ * return value is -1 if the specified value is negative; 0 if the * specified value is zero; and 1 if the specified value is positive.) *

    @@ -1521,6 +1533,7 @@ * Returns the value obtained by reversing the order of the bytes in the * two's complement representation of the specified {@code int} value. *

    diff -r 45a3584bfacf src/share/classes/java/lang/Long.java --- a/src/share/classes/java/lang/Long.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/Long.java Sun Jun 16 20:46:52 2013 -0700 @@ -1053,9 +1053,9 @@ * Returns a hash code for a {@code long} value; compatible with * {@code Long.hashCode()}. *

    @@ -1357,6 +1357,7 @@ * one-bits in its two's complement binary representation, that is, if it * is equal to zero. *

    @@ -1380,6 +1381,7 @@ * one-bits in its two's complement binary representation, that is, if it * is equal to zero. *

    @@ -1404,6 +1406,7 @@ *

  • ceil(log2(x)) = {@code 64 - numberOfLeadingZeros(x - 1)} * *
  • representation * of the specified {@code long} value, or 64 if the value @@ -1432,6 +1435,7 @@ * one-bits in its two's complement representation, in other words if it is * equal to zero. *

    ("rightmost") * one-bit in the two's complement binary representation of the * specified {@code long} value, or 64 if the value is equal @@ -1456,6 +1460,7 @@ * representation of the specified {@code long} value. This function is * sometimes referred to as the population count. *

    @@ -1484,6 +1489,8 @@ * ignored, even if the distance is negative: {@code rotateLeft(val, * distance) == rotateLeft(val, distance & 0x3F)}. *

    @@ -1506,6 +1513,8 @@ * ignored, even if the distance is negative: {@code rotateRight(val, * distance) == rotateRight(val, distance & 0x3F)}. *

    @@ -1520,6 +1529,7 @@ * two's complement binary representation of the specified {@code long} * value. *

    @@ -1540,6 +1550,7 @@ * return value is -1 if the specified value is negative; 0 if the * specified value is zero; and 1 if the specified value is positive.) *

    @@ -1552,6 +1563,7 @@ * Returns the value obtained by reversing the order of the bytes in the * two's complement representation of the specified {@code long} value. *

    diff -r 45a3584bfacf src/share/classes/java/lang/Math.java --- a/src/share/classes/java/lang/Math.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/Math.java Sun Jun 16 20:46:52 2013 -0700 @@ -1,5 +1,5 @@ /*

    non-daemon

    (equivalently,

    invoked, or

    invoked, or *

    event, * such as user logoff or system shutdown. * diff -r 45a3584bfacf src/share/classes/java/lang/Short.java --- a/src/share/classes/java/lang/Short.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/Short.java Sun Jun 16 20:46:52 2013 -0700 @@ -1,5 +1,5 @@ /*

    @@ -482,6 +483,7 @@ * Returns the value obtained by reversing the order of the bytes in the * two's complement representation of the specified {@code short} value. *

    swapping) * the bytes in the specified {@code short} value. * @since 1.5 diff -r 45a3584bfacf src/share/classes/java/lang/StrictMath.java --- a/src/share/classes/java/lang/StrictMath.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/StrictMath.java Sun Jun 16 20:46:52 2013 -0700 @@ -1,5 +1,5 @@ /*

  • * @return the unbiased exponent of the argument
     * @since 1.6
     */
    public static int getExponent(float f) {
  • @@ -1436,6 +1437,7 @@ * {@link Double#MIN_EXPONENT} -1. * * @param d a {@code double} value

    diff -r 45a3584bfacf src/share/classes/java/lang/SuppressWarnings.java --- a/src/share/classes/java/lang/SuppressWarnings.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/SuppressWarnings.java Sun Jun 16 20:46:52 2013 -0700 @@ -66,6 +66,7 @@ * additional warning names they support in conjunction with this * annotation type. They are encouraged to cooperate to ensure * that the same names work across multiple compilers.

    diff -r 45a3584bfacf src/share/classes/java/lang/annotation/Annotation.java --- a/src/share/classes/java/lang/annotation/Annotation.java Fri Jun 14 15:14:56 2013 +0400 +++ b/src/share/classes/java/lang/annotation/Annotation.java Sun Jun 16 20:46:52 2013 -0700 @@ -1,5 +1,5 @@ /*



    More information about the core-libs-dev mailing list