mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8230648: Replace @exception tag with @throws in java.base
Minor coding style update of javadoc tag in any file in java.base Reviewed-by: prappo, lancea
This commit is contained in:
parent
2fc6c6459d
commit
b15b322cf3
196 changed files with 1959 additions and 1962 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -61,17 +61,17 @@ class Array {
|
|||
* <p>The number of dimensions of the new array must not
|
||||
* exceed 255.
|
||||
*
|
||||
* @param componentType the {@code Class} object representing the
|
||||
* component type of the new array
|
||||
* @param length the length of the new array
|
||||
* @param componentType the {@code Class} object representing the
|
||||
* component type of the new array
|
||||
* @param length the length of the new array
|
||||
* @return the new array
|
||||
* @exception NullPointerException if the specified
|
||||
* {@code componentType} parameter is null
|
||||
* @exception IllegalArgumentException if componentType is {@link
|
||||
* Void#TYPE} or if the number of dimensions of the requested array
|
||||
* instance exceed 255.
|
||||
* @exception NegativeArraySizeException if the specified {@code length}
|
||||
* is negative
|
||||
* @throws NullPointerException if the specified
|
||||
* {@code componentType} parameter is null
|
||||
* @throws IllegalArgumentException if componentType is {@link
|
||||
* Void#TYPE} or if the number of dimensions of the requested array
|
||||
* instance exceed 255.
|
||||
* @throws NegativeArraySizeException if the specified {@code length}
|
||||
* is negative
|
||||
*/
|
||||
public static Object newInstance(Class<?> componentType, int length)
|
||||
throws NegativeArraySizeException {
|
||||
|
@ -100,13 +100,13 @@ class Array {
|
|||
* @param dimensions an array of {@code int} representing the dimensions of
|
||||
* the new array
|
||||
* @return the new array
|
||||
* @exception NullPointerException if the specified
|
||||
* @throws NullPointerException if the specified
|
||||
* {@code componentType} argument is null
|
||||
* @exception IllegalArgumentException if the specified {@code dimensions}
|
||||
* @throws IllegalArgumentException if the specified {@code dimensions}
|
||||
* argument is a zero-dimensional array, if componentType is {@link
|
||||
* Void#TYPE}, or if the number of dimensions of the requested array
|
||||
* instance exceed 255.
|
||||
* @exception NegativeArraySizeException if any of the components in
|
||||
* @throws NegativeArraySizeException if any of the components in
|
||||
* the specified {@code dimensions} argument is negative.
|
||||
*/
|
||||
public static Object newInstance(Class<?> componentType, int... dimensions)
|
||||
|
@ -119,7 +119,7 @@ class Array {
|
|||
*
|
||||
* @param array the array
|
||||
* @return the length of the array
|
||||
* @exception IllegalArgumentException if the object argument is not
|
||||
* @throws IllegalArgumentException if the object argument is not
|
||||
* an array
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
|
@ -135,10 +135,10 @@ class Array {
|
|||
* @param index the index
|
||||
* @return the (possibly wrapped) value of the indexed component in
|
||||
* the specified array
|
||||
* @exception NullPointerException If the specified object is null
|
||||
* @exception IllegalArgumentException If the specified object is not
|
||||
* @throws NullPointerException If the specified object is null
|
||||
* @throws IllegalArgumentException If the specified object is not
|
||||
* an array
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to the
|
||||
* length of the specified array
|
||||
*/
|
||||
|
@ -152,11 +152,11 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index
|
||||
* @return the value of the indexed component in the specified array
|
||||
* @exception NullPointerException If the specified object is null
|
||||
* @exception IllegalArgumentException If the specified object is not
|
||||
* @throws NullPointerException If the specified object is null
|
||||
* @throws IllegalArgumentException If the specified object is not
|
||||
* an array, or if the indexed element cannot be converted to the
|
||||
* return type by an identity or widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to the
|
||||
* length of the specified array
|
||||
* @see Array#get
|
||||
|
@ -171,11 +171,11 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index
|
||||
* @return the value of the indexed component in the specified array
|
||||
* @exception NullPointerException If the specified object is null
|
||||
* @exception IllegalArgumentException If the specified object is not
|
||||
* @throws NullPointerException If the specified object is null
|
||||
* @throws IllegalArgumentException If the specified object is not
|
||||
* an array, or if the indexed element cannot be converted to the
|
||||
* return type by an identity or widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to the
|
||||
* length of the specified array
|
||||
* @see Array#get
|
||||
|
@ -190,11 +190,11 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index
|
||||
* @return the value of the indexed component in the specified array
|
||||
* @exception NullPointerException If the specified object is null
|
||||
* @exception IllegalArgumentException If the specified object is not
|
||||
* @throws NullPointerException If the specified object is null
|
||||
* @throws IllegalArgumentException If the specified object is not
|
||||
* an array, or if the indexed element cannot be converted to the
|
||||
* return type by an identity or widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to the
|
||||
* length of the specified array
|
||||
* @see Array#get
|
||||
|
@ -209,11 +209,11 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index
|
||||
* @return the value of the indexed component in the specified array
|
||||
* @exception NullPointerException If the specified object is null
|
||||
* @exception IllegalArgumentException If the specified object is not
|
||||
* @throws NullPointerException If the specified object is null
|
||||
* @throws IllegalArgumentException If the specified object is not
|
||||
* an array, or if the indexed element cannot be converted to the
|
||||
* return type by an identity or widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to the
|
||||
* length of the specified array
|
||||
* @see Array#get
|
||||
|
@ -228,11 +228,11 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index
|
||||
* @return the value of the indexed component in the specified array
|
||||
* @exception NullPointerException If the specified object is null
|
||||
* @exception IllegalArgumentException If the specified object is not
|
||||
* @throws NullPointerException If the specified object is null
|
||||
* @throws IllegalArgumentException If the specified object is not
|
||||
* an array, or if the indexed element cannot be converted to the
|
||||
* return type by an identity or widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to the
|
||||
* length of the specified array
|
||||
* @see Array#get
|
||||
|
@ -247,11 +247,11 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index
|
||||
* @return the value of the indexed component in the specified array
|
||||
* @exception NullPointerException If the specified object is null
|
||||
* @exception IllegalArgumentException If the specified object is not
|
||||
* @throws NullPointerException If the specified object is null
|
||||
* @throws IllegalArgumentException If the specified object is not
|
||||
* an array, or if the indexed element cannot be converted to the
|
||||
* return type by an identity or widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to the
|
||||
* length of the specified array
|
||||
* @see Array#get
|
||||
|
@ -266,11 +266,11 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index
|
||||
* @return the value of the indexed component in the specified array
|
||||
* @exception NullPointerException If the specified object is null
|
||||
* @exception IllegalArgumentException If the specified object is not
|
||||
* @throws NullPointerException If the specified object is null
|
||||
* @throws IllegalArgumentException If the specified object is not
|
||||
* an array, or if the indexed element cannot be converted to the
|
||||
* return type by an identity or widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to the
|
||||
* length of the specified array
|
||||
* @see Array#get
|
||||
|
@ -285,11 +285,11 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index
|
||||
* @return the value of the indexed component in the specified array
|
||||
* @exception NullPointerException If the specified object is null
|
||||
* @exception IllegalArgumentException If the specified object is not
|
||||
* @throws NullPointerException If the specified object is null
|
||||
* @throws IllegalArgumentException If the specified object is not
|
||||
* an array, or if the indexed element cannot be converted to the
|
||||
* return type by an identity or widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to the
|
||||
* length of the specified array
|
||||
* @see Array#get
|
||||
|
@ -305,12 +305,12 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index into the array
|
||||
* @param value the new value of the indexed component
|
||||
* @exception NullPointerException If the specified object argument
|
||||
* @throws NullPointerException If the specified object argument
|
||||
* is null
|
||||
* @exception IllegalArgumentException If the specified object argument
|
||||
* @throws IllegalArgumentException If the specified object argument
|
||||
* is not an array, or if the array component type is primitive and
|
||||
* an unwrapping conversion fails
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to
|
||||
* the length of the specified array
|
||||
*/
|
||||
|
@ -323,13 +323,13 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index into the array
|
||||
* @param z the new value of the indexed component
|
||||
* @exception NullPointerException If the specified object argument
|
||||
* @throws NullPointerException If the specified object argument
|
||||
* is null
|
||||
* @exception IllegalArgumentException If the specified object argument
|
||||
* @throws IllegalArgumentException If the specified object argument
|
||||
* is not an array, or if the specified value cannot be converted
|
||||
* to the underlying array's component type by an identity or a
|
||||
* primitive widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to
|
||||
* the length of the specified array
|
||||
* @see Array#set
|
||||
|
@ -343,13 +343,13 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index into the array
|
||||
* @param b the new value of the indexed component
|
||||
* @exception NullPointerException If the specified object argument
|
||||
* @throws NullPointerException If the specified object argument
|
||||
* is null
|
||||
* @exception IllegalArgumentException If the specified object argument
|
||||
* @throws IllegalArgumentException If the specified object argument
|
||||
* is not an array, or if the specified value cannot be converted
|
||||
* to the underlying array's component type by an identity or a
|
||||
* primitive widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to
|
||||
* the length of the specified array
|
||||
* @see Array#set
|
||||
|
@ -363,13 +363,13 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index into the array
|
||||
* @param c the new value of the indexed component
|
||||
* @exception NullPointerException If the specified object argument
|
||||
* @throws NullPointerException If the specified object argument
|
||||
* is null
|
||||
* @exception IllegalArgumentException If the specified object argument
|
||||
* @throws IllegalArgumentException If the specified object argument
|
||||
* is not an array, or if the specified value cannot be converted
|
||||
* to the underlying array's component type by an identity or a
|
||||
* primitive widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to
|
||||
* the length of the specified array
|
||||
* @see Array#set
|
||||
|
@ -383,13 +383,13 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index into the array
|
||||
* @param s the new value of the indexed component
|
||||
* @exception NullPointerException If the specified object argument
|
||||
* @throws NullPointerException If the specified object argument
|
||||
* is null
|
||||
* @exception IllegalArgumentException If the specified object argument
|
||||
* @throws IllegalArgumentException If the specified object argument
|
||||
* is not an array, or if the specified value cannot be converted
|
||||
* to the underlying array's component type by an identity or a
|
||||
* primitive widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to
|
||||
* the length of the specified array
|
||||
* @see Array#set
|
||||
|
@ -403,13 +403,13 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index into the array
|
||||
* @param i the new value of the indexed component
|
||||
* @exception NullPointerException If the specified object argument
|
||||
* @throws NullPointerException If the specified object argument
|
||||
* is null
|
||||
* @exception IllegalArgumentException If the specified object argument
|
||||
* @throws IllegalArgumentException If the specified object argument
|
||||
* is not an array, or if the specified value cannot be converted
|
||||
* to the underlying array's component type by an identity or a
|
||||
* primitive widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to
|
||||
* the length of the specified array
|
||||
* @see Array#set
|
||||
|
@ -423,13 +423,13 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index into the array
|
||||
* @param l the new value of the indexed component
|
||||
* @exception NullPointerException If the specified object argument
|
||||
* @throws NullPointerException If the specified object argument
|
||||
* is null
|
||||
* @exception IllegalArgumentException If the specified object argument
|
||||
* @throws IllegalArgumentException If the specified object argument
|
||||
* is not an array, or if the specified value cannot be converted
|
||||
* to the underlying array's component type by an identity or a
|
||||
* primitive widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to
|
||||
* the length of the specified array
|
||||
* @see Array#set
|
||||
|
@ -443,13 +443,13 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index into the array
|
||||
* @param f the new value of the indexed component
|
||||
* @exception NullPointerException If the specified object argument
|
||||
* @throws NullPointerException If the specified object argument
|
||||
* is null
|
||||
* @exception IllegalArgumentException If the specified object argument
|
||||
* @throws IllegalArgumentException If the specified object argument
|
||||
* is not an array, or if the specified value cannot be converted
|
||||
* to the underlying array's component type by an identity or a
|
||||
* primitive widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to
|
||||
* the length of the specified array
|
||||
* @see Array#set
|
||||
|
@ -463,13 +463,13 @@ class Array {
|
|||
* @param array the array
|
||||
* @param index the index into the array
|
||||
* @param d the new value of the indexed component
|
||||
* @exception NullPointerException If the specified object argument
|
||||
* @throws NullPointerException If the specified object argument
|
||||
* is null
|
||||
* @exception IllegalArgumentException If the specified object argument
|
||||
* @throws IllegalArgumentException If the specified object argument
|
||||
* is not an array, or if the specified value cannot be converted
|
||||
* to the underlying array's component type by an identity or a
|
||||
* primitive widening conversion
|
||||
* @exception ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* @throws ArrayIndexOutOfBoundsException If the specified {@code index}
|
||||
* argument is negative, or if it is greater than or equal to
|
||||
* the length of the specified array
|
||||
* @see Array#set
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -454,21 +454,21 @@ public final class Constructor<T> extends Executable {
|
|||
* @return a new object created by calling the constructor
|
||||
* this object represents
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Constructor} object
|
||||
* @throws IllegalAccessException if this {@code Constructor} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* constructor is inaccessible.
|
||||
* @exception IllegalArgumentException if the number of actual
|
||||
* @throws IllegalArgumentException if the number of actual
|
||||
* and formal parameters differ; if an unwrapping
|
||||
* conversion for primitive arguments fails; or if,
|
||||
* after possible unwrapping, a parameter value
|
||||
* cannot be converted to the corresponding formal
|
||||
* parameter type by a method invocation conversion; if
|
||||
* this constructor pertains to an enum type.
|
||||
* @exception InstantiationException if the class that declares the
|
||||
* @throws InstantiationException if the class that declares the
|
||||
* underlying constructor represents an abstract class.
|
||||
* @exception InvocationTargetException if the underlying constructor
|
||||
* @throws InvocationTargetException if the underlying constructor
|
||||
* throws an exception.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
*/
|
||||
@CallerSensitive
|
||||
|
|
|
@ -393,15 +393,15 @@ class Field extends AccessibleObject implements Member {
|
|||
* {@code obj}; primitive values are wrapped in an appropriate
|
||||
* object before being returned
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is inaccessible.
|
||||
* @exception IllegalArgumentException if the specified object is not an
|
||||
* @throws IllegalArgumentException if the specified object is not an
|
||||
* instance of the class or interface declaring the underlying
|
||||
* field (or a subclass or implementor thereof).
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
*/
|
||||
@CallerSensitive
|
||||
|
@ -423,18 +423,18 @@ class Field extends AccessibleObject implements Member {
|
|||
* from
|
||||
* @return the value of the {@code boolean} field
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is inaccessible.
|
||||
* @exception IllegalArgumentException if the specified object is not
|
||||
* @throws IllegalArgumentException if the specified object is not
|
||||
* an instance of the class or interface declaring the
|
||||
* underlying field (or a subclass or implementor
|
||||
* thereof), or if the field value cannot be
|
||||
* converted to the type {@code boolean} by a
|
||||
* widening conversion.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#get
|
||||
*/
|
||||
|
@ -457,18 +457,18 @@ class Field extends AccessibleObject implements Member {
|
|||
* from
|
||||
* @return the value of the {@code byte} field
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is inaccessible.
|
||||
* @exception IllegalArgumentException if the specified object is not
|
||||
* @throws IllegalArgumentException if the specified object is not
|
||||
* an instance of the class or interface declaring the
|
||||
* underlying field (or a subclass or implementor
|
||||
* thereof), or if the field value cannot be
|
||||
* converted to the type {@code byte} by a
|
||||
* widening conversion.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#get
|
||||
*/
|
||||
|
@ -493,18 +493,18 @@ class Field extends AccessibleObject implements Member {
|
|||
* from
|
||||
* @return the value of the field converted to type {@code char}
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is inaccessible.
|
||||
* @exception IllegalArgumentException if the specified object is not
|
||||
* @throws IllegalArgumentException if the specified object is not
|
||||
* an instance of the class or interface declaring the
|
||||
* underlying field (or a subclass or implementor
|
||||
* thereof), or if the field value cannot be
|
||||
* converted to the type {@code char} by a
|
||||
* widening conversion.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#get
|
||||
*/
|
||||
|
@ -529,18 +529,18 @@ class Field extends AccessibleObject implements Member {
|
|||
* from
|
||||
* @return the value of the field converted to type {@code short}
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is inaccessible.
|
||||
* @exception IllegalArgumentException if the specified object is not
|
||||
* @throws IllegalArgumentException if the specified object is not
|
||||
* an instance of the class or interface declaring the
|
||||
* underlying field (or a subclass or implementor
|
||||
* thereof), or if the field value cannot be
|
||||
* converted to the type {@code short} by a
|
||||
* widening conversion.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#get
|
||||
*/
|
||||
|
@ -565,18 +565,18 @@ class Field extends AccessibleObject implements Member {
|
|||
* from
|
||||
* @return the value of the field converted to type {@code int}
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is inaccessible.
|
||||
* @exception IllegalArgumentException if the specified object is not
|
||||
* @throws IllegalArgumentException if the specified object is not
|
||||
* an instance of the class or interface declaring the
|
||||
* underlying field (or a subclass or implementor
|
||||
* thereof), or if the field value cannot be
|
||||
* converted to the type {@code int} by a
|
||||
* widening conversion.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#get
|
||||
*/
|
||||
|
@ -601,18 +601,18 @@ class Field extends AccessibleObject implements Member {
|
|||
* from
|
||||
* @return the value of the field converted to type {@code long}
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is inaccessible.
|
||||
* @exception IllegalArgumentException if the specified object is not
|
||||
* @throws IllegalArgumentException if the specified object is not
|
||||
* an instance of the class or interface declaring the
|
||||
* underlying field (or a subclass or implementor
|
||||
* thereof), or if the field value cannot be
|
||||
* converted to the type {@code long} by a
|
||||
* widening conversion.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#get
|
||||
*/
|
||||
|
@ -637,18 +637,18 @@ class Field extends AccessibleObject implements Member {
|
|||
* from
|
||||
* @return the value of the field converted to type {@code float}
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is inaccessible.
|
||||
* @exception IllegalArgumentException if the specified object is not
|
||||
* @throws IllegalArgumentException if the specified object is not
|
||||
* an instance of the class or interface declaring the
|
||||
* underlying field (or a subclass or implementor
|
||||
* thereof), or if the field value cannot be
|
||||
* converted to the type {@code float} by a
|
||||
* widening conversion.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#get
|
||||
*/
|
||||
|
@ -673,18 +673,18 @@ class Field extends AccessibleObject implements Member {
|
|||
* from
|
||||
* @return the value of the field converted to type {@code double}
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is inaccessible.
|
||||
* @exception IllegalArgumentException if the specified object is not
|
||||
* @throws IllegalArgumentException if the specified object is not
|
||||
* an instance of the class or interface declaring the
|
||||
* underlying field (or a subclass or implementor
|
||||
* thereof), or if the field value cannot be
|
||||
* converted to the type {@code double} by a
|
||||
* widening conversion.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#get
|
||||
*/
|
||||
|
@ -754,16 +754,16 @@ class Field extends AccessibleObject implements Member {
|
|||
* @param value the new value for the field of {@code obj}
|
||||
* being modified
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is either inaccessible or final.
|
||||
* @exception IllegalArgumentException if the specified object is not an
|
||||
* @throws IllegalArgumentException if the specified object is not an
|
||||
* instance of the class or interface declaring the underlying
|
||||
* field (or a subclass or implementor thereof),
|
||||
* or if an unwrapping conversion fails.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
*/
|
||||
@CallerSensitive
|
||||
|
@ -789,16 +789,16 @@ class Field extends AccessibleObject implements Member {
|
|||
* @param z the new value for the field of {@code obj}
|
||||
* being modified
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is either inaccessible or final.
|
||||
* @exception IllegalArgumentException if the specified object is not an
|
||||
* @throws IllegalArgumentException if the specified object is not an
|
||||
* instance of the class or interface declaring the underlying
|
||||
* field (or a subclass or implementor thereof),
|
||||
* or if an unwrapping conversion fails.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#set
|
||||
*/
|
||||
|
@ -825,16 +825,16 @@ class Field extends AccessibleObject implements Member {
|
|||
* @param b the new value for the field of {@code obj}
|
||||
* being modified
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is either inaccessible or final.
|
||||
* @exception IllegalArgumentException if the specified object is not an
|
||||
* @throws IllegalArgumentException if the specified object is not an
|
||||
* instance of the class or interface declaring the underlying
|
||||
* field (or a subclass or implementor thereof),
|
||||
* or if an unwrapping conversion fails.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#set
|
||||
*/
|
||||
|
@ -861,16 +861,16 @@ class Field extends AccessibleObject implements Member {
|
|||
* @param c the new value for the field of {@code obj}
|
||||
* being modified
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is either inaccessible or final.
|
||||
* @exception IllegalArgumentException if the specified object is not an
|
||||
* @throws IllegalArgumentException if the specified object is not an
|
||||
* instance of the class or interface declaring the underlying
|
||||
* field (or a subclass or implementor thereof),
|
||||
* or if an unwrapping conversion fails.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#set
|
||||
*/
|
||||
|
@ -897,16 +897,16 @@ class Field extends AccessibleObject implements Member {
|
|||
* @param s the new value for the field of {@code obj}
|
||||
* being modified
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is either inaccessible or final.
|
||||
* @exception IllegalArgumentException if the specified object is not an
|
||||
* @throws IllegalArgumentException if the specified object is not an
|
||||
* instance of the class or interface declaring the underlying
|
||||
* field (or a subclass or implementor thereof),
|
||||
* or if an unwrapping conversion fails.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#set
|
||||
*/
|
||||
|
@ -933,16 +933,16 @@ class Field extends AccessibleObject implements Member {
|
|||
* @param i the new value for the field of {@code obj}
|
||||
* being modified
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is either inaccessible or final.
|
||||
* @exception IllegalArgumentException if the specified object is not an
|
||||
* @throws IllegalArgumentException if the specified object is not an
|
||||
* instance of the class or interface declaring the underlying
|
||||
* field (or a subclass or implementor thereof),
|
||||
* or if an unwrapping conversion fails.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#set
|
||||
*/
|
||||
|
@ -969,16 +969,16 @@ class Field extends AccessibleObject implements Member {
|
|||
* @param l the new value for the field of {@code obj}
|
||||
* being modified
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is either inaccessible or final.
|
||||
* @exception IllegalArgumentException if the specified object is not an
|
||||
* @throws IllegalArgumentException if the specified object is not an
|
||||
* instance of the class or interface declaring the underlying
|
||||
* field (or a subclass or implementor thereof),
|
||||
* or if an unwrapping conversion fails.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#set
|
||||
*/
|
||||
|
@ -1005,16 +1005,16 @@ class Field extends AccessibleObject implements Member {
|
|||
* @param f the new value for the field of {@code obj}
|
||||
* being modified
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is either inaccessible or final.
|
||||
* @exception IllegalArgumentException if the specified object is not an
|
||||
* @throws IllegalArgumentException if the specified object is not an
|
||||
* instance of the class or interface declaring the underlying
|
||||
* field (or a subclass or implementor thereof),
|
||||
* or if an unwrapping conversion fails.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#set
|
||||
*/
|
||||
|
@ -1041,16 +1041,16 @@ class Field extends AccessibleObject implements Member {
|
|||
* @param d the new value for the field of {@code obj}
|
||||
* being modified
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Field} object
|
||||
* @throws IllegalAccessException if this {@code Field} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* field is either inaccessible or final.
|
||||
* @exception IllegalArgumentException if the specified object is not an
|
||||
* @throws IllegalArgumentException if the specified object is not an
|
||||
* instance of the class or interface declaring the underlying
|
||||
* field (or a subclass or implementor thereof),
|
||||
* or if an unwrapping conversion fails.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the field is an instance field.
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails.
|
||||
* @see Field#set
|
||||
*/
|
||||
|
|
|
@ -524,10 +524,10 @@ public final class Method extends Executable {
|
|||
* this object on {@code obj} with parameters
|
||||
* {@code args}
|
||||
*
|
||||
* @exception IllegalAccessException if this {@code Method} object
|
||||
* @throws IllegalAccessException if this {@code Method} object
|
||||
* is enforcing Java language access control and the underlying
|
||||
* method is inaccessible.
|
||||
* @exception IllegalArgumentException if the method is an
|
||||
* @throws IllegalArgumentException if the method is an
|
||||
* instance method and the specified object argument
|
||||
* is not an instance of the class or interface
|
||||
* declaring the underlying method (or of a subclass
|
||||
|
@ -537,11 +537,11 @@ public final class Method extends Executable {
|
|||
* after possible unwrapping, a parameter value
|
||||
* cannot be converted to the corresponding formal
|
||||
* parameter type by a method invocation conversion.
|
||||
* @exception InvocationTargetException if the underlying method
|
||||
* @throws InvocationTargetException if the underlying method
|
||||
* throws an exception.
|
||||
* @exception NullPointerException if the specified object is null
|
||||
* @throws NullPointerException if the specified object is null
|
||||
* and the method is an instance method.
|
||||
* @exception ExceptionInInitializerError if the initialization
|
||||
* @throws ExceptionInInitializerError if the initialization
|
||||
* provoked by this method fails.
|
||||
*/
|
||||
@CallerSensitive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue