mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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
|
@ -321,10 +321,10 @@ public final class Class<T> implements java.io.Serializable,
|
|||
* @param className the fully qualified name of the desired class.
|
||||
* @return the {@code Class} object for the class with the
|
||||
* specified name.
|
||||
* @exception LinkageError if the linkage fails
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws LinkageError if the linkage fails
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails
|
||||
* @exception ClassNotFoundException if the class cannot be located
|
||||
* @throws ClassNotFoundException if the class cannot be located
|
||||
*/
|
||||
@CallerSensitive
|
||||
public static Class<?> forName(String className)
|
||||
|
@ -379,12 +379,12 @@ public final class Class<T> implements java.io.Serializable,
|
|||
* @param loader class loader from which the class must be loaded
|
||||
* @return class object representing the desired class
|
||||
*
|
||||
* @exception LinkageError if the linkage fails
|
||||
* @exception ExceptionInInitializerError if the initialization provoked
|
||||
* @throws LinkageError if the linkage fails
|
||||
* @throws ExceptionInInitializerError if the initialization provoked
|
||||
* by this method fails
|
||||
* @exception ClassNotFoundException if the class cannot be located by
|
||||
* @throws ClassNotFoundException if the class cannot be located by
|
||||
* the specified class loader
|
||||
* @exception SecurityException
|
||||
* @throws SecurityException
|
||||
* if a security manager is present, and the {@code loader} is
|
||||
* {@code null}, and the caller's class loader is not
|
||||
* {@code null}, and the caller does not have the
|
||||
|
@ -667,12 +667,12 @@ public final class Class<T> implements java.io.Serializable,
|
|||
* or via a widening reference conversion. See <em>The Java Language
|
||||
* Specification</em>, sections 5.1.1 and 5.1.4 , for details.
|
||||
*
|
||||
* @param cls the {@code Class} object to be checked
|
||||
* @return the {@code boolean} value indicating whether objects of the
|
||||
* type {@code cls} can be assigned to objects of this class
|
||||
* @exception NullPointerException if the specified Class parameter is
|
||||
* @param cls the {@code Class} object to be checked
|
||||
* @return the {@code boolean} value indicating whether objects of the
|
||||
* type {@code cls} can be assigned to objects of this class
|
||||
* @throws NullPointerException if the specified Class parameter is
|
||||
* null.
|
||||
* @since 1.1
|
||||
* @since 1.1
|
||||
*/
|
||||
@HotSpotIntrinsicCandidate
|
||||
public native boolean isAssignableFrom(Class<?> cls);
|
||||
|
@ -1512,7 +1512,7 @@ public final class Class<T> implements java.io.Serializable,
|
|||
* class. If the underlying class is a top level class this
|
||||
* method returns {@code null}.
|
||||
* @return the immediately enclosing class of the underlying class
|
||||
* @exception SecurityException
|
||||
* @throws SecurityException
|
||||
* If a security manager, <i>s</i>, is present and the caller's
|
||||
* class loader is not the same as or an ancestor of the class
|
||||
* loader for the enclosing class and invocation of {@link
|
||||
|
|
|
@ -445,10 +445,10 @@ public abstract class ClassLoader {
|
|||
* @param parent
|
||||
* The parent class loader
|
||||
*
|
||||
* @throws SecurityException
|
||||
* If a security manager exists and its
|
||||
* {@code checkCreateClassLoader} method doesn't allow creation
|
||||
* of a new class loader.
|
||||
* @throws SecurityException
|
||||
* If a security manager exists and its
|
||||
* {@code checkCreateClassLoader} method doesn't allow creation
|
||||
* of a new class loader.
|
||||
*
|
||||
* @since 1.2
|
||||
*/
|
||||
|
@ -509,8 +509,8 @@ public abstract class ClassLoader {
|
|||
* to invoking {@link #loadClass(String, boolean) loadClass(name,
|
||||
* false)}.
|
||||
*
|
||||
* @param name
|
||||
* The <a href="#binary-name">binary name</a> of the class
|
||||
* @param name
|
||||
* The <a href="#binary-name">binary name</a> of the class
|
||||
*
|
||||
* @return The resulting {@code Class} object
|
||||
*
|
||||
|
@ -551,11 +551,11 @@ public abstract class ClassLoader {
|
|||
* {@link #getClassLoadingLock getClassLoadingLock} method
|
||||
* during the entire class loading process.
|
||||
*
|
||||
* @param name
|
||||
* The <a href="#binary-name">binary name</a> of the class
|
||||
* @param name
|
||||
* The <a href="#binary-name">binary name</a> of the class
|
||||
*
|
||||
* @param resolve
|
||||
* If {@code true} then resolve the class
|
||||
* @param resolve
|
||||
* If {@code true} then resolve the class
|
||||
*
|
||||
* @return The resulting {@code Class} object
|
||||
*
|
||||
|
@ -704,8 +704,8 @@ public abstract class ClassLoader {
|
|||
*
|
||||
* @implSpec The default implementation throws {@code ClassNotFoundException}.
|
||||
*
|
||||
* @param name
|
||||
* The <a href="#binary-name">binary name</a> of the class
|
||||
* @param name
|
||||
* The <a href="#binary-name">binary name</a> of the class
|
||||
*
|
||||
* @return The resulting {@code Class} object
|
||||
*
|
||||
|
|
|
@ -598,7 +598,7 @@ public final class Integer extends Number
|
|||
* @param radix the radix to be used while parsing {@code s}.
|
||||
* @return the integer represented by the string argument in the
|
||||
* specified radix.
|
||||
* @exception NumberFormatException if the {@code String}
|
||||
* @throws NumberFormatException if the {@code String}
|
||||
* does not contain a parsable {@code int}.
|
||||
*/
|
||||
public static int parseInt(String s, int radix)
|
||||
|
@ -763,7 +763,7 @@ public final class Integer extends Number
|
|||
* @param s a {@code String} containing the {@code int}
|
||||
* representation to be parsed
|
||||
* @return the integer value represented by the argument in decimal.
|
||||
* @exception NumberFormatException if the string does not contain a
|
||||
* @throws NumberFormatException if the string does not contain a
|
||||
* parsable integer.
|
||||
*/
|
||||
public static int parseInt(String s) throws NumberFormatException {
|
||||
|
@ -950,7 +950,7 @@ public final class Integer extends Number
|
|||
* @return an {@code Integer} object holding the value
|
||||
* represented by the string argument in the specified
|
||||
* radix.
|
||||
* @exception NumberFormatException if the {@code String}
|
||||
* @throws NumberFormatException if the {@code String}
|
||||
* does not contain a parsable {@code int}.
|
||||
*/
|
||||
public static Integer valueOf(String s, int radix) throws NumberFormatException {
|
||||
|
@ -976,7 +976,7 @@ public final class Integer extends Number
|
|||
* @param s the string to be parsed.
|
||||
* @return an {@code Integer} object holding the value
|
||||
* represented by the string argument.
|
||||
* @exception NumberFormatException if the string cannot be parsed
|
||||
* @throws NumberFormatException if the string cannot be parsed
|
||||
* as an integer.
|
||||
*/
|
||||
public static Integer valueOf(String s) throws NumberFormatException {
|
||||
|
@ -1393,7 +1393,7 @@ public final class Integer extends Number
|
|||
* @param nm the {@code String} to decode.
|
||||
* @return an {@code Integer} object holding the {@code int}
|
||||
* value represented by {@code nm}
|
||||
* @exception NumberFormatException if the {@code String} does not
|
||||
* @throws NumberFormatException if the {@code String} does not
|
||||
* contain a parsable integer.
|
||||
* @see java.lang.Integer#parseInt(java.lang.String, int)
|
||||
*/
|
||||
|
|
|
@ -233,7 +233,7 @@ public class Package extends NamedPackage implements java.lang.reflect.Annotated
|
|||
* Returns true if this package is sealed with respect to the specified
|
||||
* code source {@code url}.
|
||||
*
|
||||
* @param url the code source URL
|
||||
* @param url the code source URL
|
||||
* @return true if this package is sealed with respect to the given {@code url}
|
||||
*/
|
||||
public boolean isSealed(URL url) {
|
||||
|
@ -267,12 +267,12 @@ public class Package extends NamedPackage implements java.lang.reflect.Annotated
|
|||
* If the values are equal the period is skipped and the next pair of
|
||||
* components is compared.
|
||||
*
|
||||
* @param desired the version string of the desired version.
|
||||
* @param desired the version string of the desired version.
|
||||
* @return true if this package's version number is greater
|
||||
* than or equal to the desired version number
|
||||
* than or equal to the desired version number
|
||||
*
|
||||
* @exception NumberFormatException if the current version is not known or
|
||||
* the desired or current version is not of the correct dotted form.
|
||||
* @throws NumberFormatException if the current version is not known or
|
||||
* the desired or current version is not of the correct dotted form.
|
||||
*/
|
||||
public boolean isCompatibleWith(String desired)
|
||||
throws NumberFormatException
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 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
|
||||
|
@ -223,9 +223,9 @@ final class ProcessHandleImpl implements ProcessHandle {
|
|||
/**
|
||||
* Returns a ProcessHandle for an existing native process.
|
||||
*
|
||||
* @param pid the native process identifier
|
||||
* @param pid the native process identifier
|
||||
* @return The ProcessHandle for the pid if the process is alive;
|
||||
* or {@code null} if the process ID does not exist in the native system.
|
||||
* or {@code null} if the process ID does not exist in the native system.
|
||||
* @throws SecurityException if RuntimePermission("manageProcess") is not granted
|
||||
*/
|
||||
static Optional<ProcessHandle> get(long pid) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 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
|
||||
|
@ -331,7 +331,7 @@ public class SecurityManager {
|
|||
* security manager.
|
||||
* This may result in throwing a <code>SecurityException</code>.
|
||||
*
|
||||
* @exception java.lang.SecurityException if a security manager already
|
||||
* @throws java.lang.SecurityException if a security manager already
|
||||
* exists and its <code>checkPermission</code> method
|
||||
* doesn't allow creation of a new security manager.
|
||||
* @see java.lang.System#getSecurityManager()
|
||||
|
@ -398,9 +398,9 @@ public class SecurityManager {
|
|||
* with the given permission.
|
||||
*
|
||||
* @param perm the requested permission.
|
||||
* @exception SecurityException if access is not permitted based on
|
||||
* @throws SecurityException if access is not permitted based on
|
||||
* the current security policy.
|
||||
* @exception NullPointerException if the permission argument is
|
||||
* @throws NullPointerException if the permission argument is
|
||||
* <code>null</code>.
|
||||
* @since 1.2
|
||||
*/
|
||||
|
@ -429,11 +429,11 @@ public class SecurityManager {
|
|||
*
|
||||
* @param perm the specified permission
|
||||
* @param context a system-dependent security context.
|
||||
* @exception SecurityException if the specified security context
|
||||
* @throws SecurityException if the specified security context
|
||||
* is not an instance of <code>AccessControlContext</code>
|
||||
* (e.g., is <code>null</code>), or is denied access to the
|
||||
* resource specified by the given permission.
|
||||
* @exception NullPointerException if the permission argument is
|
||||
* @throws NullPointerException if the permission argument is
|
||||
* <code>null</code>.
|
||||
* @see java.lang.SecurityManager#getSecurityContext()
|
||||
* @see java.security.AccessControlContext#checkPermission(java.security.Permission)
|
||||
|
@ -460,7 +460,7 @@ public class SecurityManager {
|
|||
* at the point the overridden method would normally throw an
|
||||
* exception.
|
||||
*
|
||||
* @exception SecurityException if the calling thread does not
|
||||
* @throws SecurityException if the calling thread does not
|
||||
* have permission
|
||||
* to create a new class loader.
|
||||
* @see java.lang.ClassLoader#ClassLoader()
|
||||
|
@ -515,9 +515,9 @@ public class SecurityManager {
|
|||
* equivalent security check should be placed in the overridden method.
|
||||
*
|
||||
* @param t the thread to be checked.
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to modify the thread.
|
||||
* @exception NullPointerException if the thread argument is
|
||||
* @throws NullPointerException if the thread argument is
|
||||
* <code>null</code>.
|
||||
* @see java.lang.Thread#resume() resume
|
||||
* @see java.lang.Thread#setDaemon(boolean) setDaemon
|
||||
|
@ -568,9 +568,9 @@ public class SecurityManager {
|
|||
* equivalent security check should be placed in the overridden method.
|
||||
*
|
||||
* @param g the thread group to be checked.
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to modify the thread group.
|
||||
* @exception NullPointerException if the thread group argument is
|
||||
* @throws NullPointerException if the thread group argument is
|
||||
* <code>null</code>.
|
||||
* @see java.lang.ThreadGroup#destroy() destroy
|
||||
* @see java.lang.ThreadGroup#resume() resume
|
||||
|
@ -610,7 +610,7 @@ public class SecurityManager {
|
|||
* exception.
|
||||
*
|
||||
* @param status the exit status.
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to halt the Java Virtual Machine with
|
||||
* the specified status.
|
||||
* @see java.lang.Runtime#exit(int) exit
|
||||
|
@ -639,9 +639,9 @@ public class SecurityManager {
|
|||
* exception.
|
||||
*
|
||||
* @param cmd the specified system command.
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to create a subprocess.
|
||||
* @exception NullPointerException if the <code>cmd</code> argument is
|
||||
* @throws NullPointerException if the <code>cmd</code> argument is
|
||||
* <code>null</code>.
|
||||
* @see java.lang.Runtime#exec(java.lang.String)
|
||||
* @see java.lang.Runtime#exec(java.lang.String, java.lang.String[])
|
||||
|
@ -679,9 +679,9 @@ public class SecurityManager {
|
|||
* exception.
|
||||
*
|
||||
* @param lib the name of the library.
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to dynamically link the library.
|
||||
* @exception NullPointerException if the <code>lib</code> argument is
|
||||
* @throws NullPointerException if the <code>lib</code> argument is
|
||||
* <code>null</code>.
|
||||
* @see java.lang.Runtime#load(java.lang.String)
|
||||
* @see java.lang.Runtime#loadLibrary(java.lang.String)
|
||||
|
@ -709,9 +709,9 @@ public class SecurityManager {
|
|||
* exception.
|
||||
*
|
||||
* @param fd the system-dependent file descriptor.
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to access the specified file descriptor.
|
||||
* @exception NullPointerException if the file descriptor argument is
|
||||
* @throws NullPointerException if the file descriptor argument is
|
||||
* <code>null</code>.
|
||||
* @see java.io.FileDescriptor
|
||||
* @see #checkPermission(java.security.Permission) checkPermission
|
||||
|
@ -737,9 +737,9 @@ public class SecurityManager {
|
|||
* exception.
|
||||
*
|
||||
* @param file the system-dependent file name.
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to access the specified file.
|
||||
* @exception NullPointerException if the <code>file</code> argument is
|
||||
* @throws NullPointerException if the <code>file</code> argument is
|
||||
* <code>null</code>.
|
||||
* @see #checkPermission(java.security.Permission) checkPermission
|
||||
*/
|
||||
|
@ -769,11 +769,11 @@ public class SecurityManager {
|
|||
*
|
||||
* @param file the system-dependent filename.
|
||||
* @param context a system-dependent security context.
|
||||
* @exception SecurityException if the specified security context
|
||||
* @throws SecurityException if the specified security context
|
||||
* is not an instance of <code>AccessControlContext</code>
|
||||
* (e.g., is <code>null</code>), or does not have permission
|
||||
* to read the specified file.
|
||||
* @exception NullPointerException if the <code>file</code> argument is
|
||||
* @throws NullPointerException if the <code>file</code> argument is
|
||||
* <code>null</code>.
|
||||
* @see java.lang.SecurityManager#getSecurityContext()
|
||||
* @see java.security.AccessControlContext#checkPermission(java.security.Permission)
|
||||
|
@ -799,9 +799,9 @@ public class SecurityManager {
|
|||
* exception.
|
||||
*
|
||||
* @param fd the system-dependent file descriptor.
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to access the specified file descriptor.
|
||||
* @exception NullPointerException if the file descriptor argument is
|
||||
* @throws NullPointerException if the file descriptor argument is
|
||||
* <code>null</code>.
|
||||
* @see java.io.FileDescriptor
|
||||
* @see #checkPermission(java.security.Permission) checkPermission
|
||||
|
@ -828,9 +828,9 @@ public class SecurityManager {
|
|||
* exception.
|
||||
*
|
||||
* @param file the system-dependent filename.
|
||||
* @exception SecurityException if the calling thread does not
|
||||
* @throws SecurityException if the calling thread does not
|
||||
* have permission to access the specified file.
|
||||
* @exception NullPointerException if the <code>file</code> argument is
|
||||
* @throws NullPointerException if the <code>file</code> argument is
|
||||
* <code>null</code>.
|
||||
* @see #checkPermission(java.security.Permission) checkPermission
|
||||
*/
|
||||
|
@ -855,9 +855,9 @@ public class SecurityManager {
|
|||
* exception.
|
||||
*
|
||||
* @param file the system-dependent filename.
|
||||
* @exception SecurityException if the calling thread does not
|
||||
* @throws SecurityException if the calling thread does not
|
||||
* have permission to delete the file.
|
||||
* @exception NullPointerException if the <code>file</code> argument is
|
||||
* @throws NullPointerException if the <code>file</code> argument is
|
||||
* <code>null</code>.
|
||||
* @see java.io.File#delete()
|
||||
* @see #checkPermission(java.security.Permission) checkPermission
|
||||
|
@ -889,10 +889,10 @@ public class SecurityManager {
|
|||
*
|
||||
* @param host the host name port to connect to.
|
||||
* @param port the protocol port to connect to.
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to open a socket connection to the specified
|
||||
* <code>host</code> and <code>port</code>.
|
||||
* @exception NullPointerException if the <code>host</code> argument is
|
||||
* @throws NullPointerException if the <code>host</code> argument is
|
||||
* <code>null</code>.
|
||||
* @see #checkPermission(java.security.Permission) checkPermission
|
||||
*/
|
||||
|
@ -941,12 +941,12 @@ public class SecurityManager {
|
|||
* @param host the host name port to connect to.
|
||||
* @param port the protocol port to connect to.
|
||||
* @param context a system-dependent security context.
|
||||
* @exception SecurityException if the specified security context
|
||||
* @throws SecurityException if the specified security context
|
||||
* is not an instance of <code>AccessControlContext</code>
|
||||
* (e.g., is <code>null</code>), or does not have permission
|
||||
* to open a socket connection to the specified
|
||||
* <code>host</code> and <code>port</code>.
|
||||
* @exception NullPointerException if the <code>host</code> argument is
|
||||
* @throws NullPointerException if the <code>host</code> argument is
|
||||
* <code>null</code>.
|
||||
* @see java.lang.SecurityManager#getSecurityContext()
|
||||
* @see java.security.AccessControlContext#checkPermission(java.security.Permission)
|
||||
|
@ -982,7 +982,7 @@ public class SecurityManager {
|
|||
* exception.
|
||||
*
|
||||
* @param port the local port.
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to listen on the specified port.
|
||||
* @see #checkPermission(java.security.Permission) checkPermission
|
||||
*/
|
||||
|
@ -1009,9 +1009,9 @@ public class SecurityManager {
|
|||
*
|
||||
* @param host the host name of the socket connection.
|
||||
* @param port the port number of the socket connection.
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to accept the connection.
|
||||
* @exception NullPointerException if the <code>host</code> argument is
|
||||
* @throws NullPointerException if the <code>host</code> argument is
|
||||
* <code>null</code>.
|
||||
* @see java.net.ServerSocket#accept()
|
||||
* @see #checkPermission(java.security.Permission) checkPermission
|
||||
|
@ -1042,9 +1042,9 @@ public class SecurityManager {
|
|||
* exception.
|
||||
*
|
||||
* @param maddr Internet group address to be used.
|
||||
* @exception SecurityException if the calling thread is not allowed to
|
||||
* @throws SecurityException if the calling thread is not allowed to
|
||||
* use (join/leave/send/receive) IP multicast.
|
||||
* @exception NullPointerException if the address argument is
|
||||
* @throws NullPointerException if the address argument is
|
||||
* <code>null</code>.
|
||||
* @since 1.1
|
||||
* @see #checkPermission(java.security.Permission) checkPermission
|
||||
|
@ -1076,9 +1076,9 @@ public class SecurityManager {
|
|||
* @param ttl value in use, if it is multicast send.
|
||||
* Note: this particular implementation does not use the ttl
|
||||
* parameter.
|
||||
* @exception SecurityException if the calling thread is not allowed to
|
||||
* @throws SecurityException if the calling thread is not allowed to
|
||||
* use (join/leave/send/receive) IP multicast.
|
||||
* @exception NullPointerException if the address argument is
|
||||
* @throws NullPointerException if the address argument is
|
||||
* <code>null</code>.
|
||||
* @since 1.1
|
||||
* @deprecated Use #checkPermission(java.security.Permission) instead
|
||||
|
@ -1110,7 +1110,7 @@ public class SecurityManager {
|
|||
* at the point the overridden method would normally throw an
|
||||
* exception.
|
||||
*
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to access or modify the system properties.
|
||||
* @see java.lang.System#getProperties()
|
||||
* @see java.lang.System#setProperties(java.util.Properties)
|
||||
|
@ -1139,11 +1139,11 @@ public class SecurityManager {
|
|||
*
|
||||
* @param key a system property key.
|
||||
*
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to access the specified system property.
|
||||
* @exception NullPointerException if the <code>key</code> argument is
|
||||
* @throws NullPointerException if the <code>key</code> argument is
|
||||
* <code>null</code>.
|
||||
* @exception IllegalArgumentException if <code>key</code> is empty.
|
||||
* @throws IllegalArgumentException if <code>key</code> is empty.
|
||||
*
|
||||
* @see java.lang.System#getProperty(java.lang.String)
|
||||
* @see #checkPermission(java.security.Permission) checkPermission
|
||||
|
@ -1166,7 +1166,7 @@ public class SecurityManager {
|
|||
* at the point the overridden method would normally throw an
|
||||
* exception.
|
||||
*
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to initiate a print job request.
|
||||
* @since 1.1
|
||||
* @see #checkPermission(java.security.Permission) checkPermission
|
||||
|
@ -1474,7 +1474,7 @@ public class SecurityManager {
|
|||
* at the point the overridden method would normally throw an
|
||||
* exception.
|
||||
*
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission to specify a socket factory or a stream
|
||||
* handler factory.
|
||||
*
|
||||
|
@ -1509,10 +1509,10 @@ public class SecurityManager {
|
|||
*
|
||||
* @param target the target name of the <code>SecurityPermission</code>.
|
||||
*
|
||||
* @exception SecurityException if the calling thread does not have
|
||||
* @throws SecurityException if the calling thread does not have
|
||||
* permission for the requested access.
|
||||
* @exception NullPointerException if <code>target</code> is null.
|
||||
* @exception IllegalArgumentException if <code>target</code> is empty.
|
||||
* @throws NullPointerException if <code>target</code> is null.
|
||||
* @throws IllegalArgumentException if <code>target</code> is empty.
|
||||
*
|
||||
* @since 1.1
|
||||
* @see #checkPermission(java.security.Permission) checkPermission
|
||||
|
|
|
@ -702,7 +702,7 @@ public final class String
|
|||
* @param index the index of the {@code char} value.
|
||||
* @return the {@code char} value at the specified index of this string.
|
||||
* The first {@code char} value is at index {@code 0}.
|
||||
* @exception IndexOutOfBoundsException if the {@code index}
|
||||
* @throws IndexOutOfBoundsException if the {@code index}
|
||||
* argument is negative or not less than the length of this
|
||||
* string.
|
||||
*/
|
||||
|
@ -731,7 +731,7 @@ public final class String
|
|||
* @param index the index to the {@code char} values
|
||||
* @return the code point value of the character at the
|
||||
* {@code index}
|
||||
* @exception IndexOutOfBoundsException if the {@code index}
|
||||
* @throws IndexOutOfBoundsException if the {@code index}
|
||||
* argument is negative or not less than the length of this
|
||||
* string.
|
||||
* @since 1.5
|
||||
|
@ -763,7 +763,7 @@ public final class String
|
|||
*
|
||||
* @param index the index following the code point that should be returned
|
||||
* @return the Unicode code point value before the given index.
|
||||
* @exception IndexOutOfBoundsException if the {@code index}
|
||||
* @throws IndexOutOfBoundsException if the {@code index}
|
||||
* argument is less than 1 or greater than the length
|
||||
* of this string.
|
||||
* @since 1.5
|
||||
|
@ -794,7 +794,7 @@ public final class String
|
|||
* the text range.
|
||||
* @return the number of Unicode code points in the specified text
|
||||
* range
|
||||
* @exception IndexOutOfBoundsException if the
|
||||
* @throws IndexOutOfBoundsException if the
|
||||
* {@code beginIndex} is negative, or {@code endIndex}
|
||||
* is larger than the length of this {@code String}, or
|
||||
* {@code beginIndex} is larger than {@code endIndex}.
|
||||
|
@ -821,7 +821,7 @@ public final class String
|
|||
* @param index the index to be offset
|
||||
* @param codePointOffset the offset in code points
|
||||
* @return the index within this {@code String}
|
||||
* @exception IndexOutOfBoundsException if {@code index}
|
||||
* @throws IndexOutOfBoundsException if {@code index}
|
||||
* is negative or larger then the length of this
|
||||
* {@code String}, or if {@code codePointOffset} is positive
|
||||
* and the substring starting with {@code index} has fewer
|
||||
|
@ -858,7 +858,7 @@ public final class String
|
|||
* to copy.
|
||||
* @param dst the destination array.
|
||||
* @param dstBegin the start offset in the destination array.
|
||||
* @exception IndexOutOfBoundsException If any of the following
|
||||
* @throws IndexOutOfBoundsException If any of the following
|
||||
* is true:
|
||||
* <ul><li>{@code srcBegin} is negative.
|
||||
* <li>{@code srcBegin} is greater than {@code srcEnd}
|
||||
|
@ -1867,7 +1867,7 @@ public final class String
|
|||
*
|
||||
* @param beginIndex the beginning index, inclusive.
|
||||
* @return the specified substring.
|
||||
* @exception IndexOutOfBoundsException if
|
||||
* @throws IndexOutOfBoundsException if
|
||||
* {@code beginIndex} is negative or larger than the
|
||||
* length of this {@code String} object.
|
||||
*/
|
||||
|
@ -1890,7 +1890,7 @@ public final class String
|
|||
* @param beginIndex the beginning index, inclusive.
|
||||
* @param endIndex the ending index, exclusive.
|
||||
* @return the specified substring.
|
||||
* @exception IndexOutOfBoundsException if the
|
||||
* @throws IndexOutOfBoundsException if the
|
||||
* {@code beginIndex} is negative, or
|
||||
* {@code endIndex} is larger than the length of
|
||||
* this {@code String} object, or
|
||||
|
@ -3374,7 +3374,7 @@ public final class String
|
|||
* @param count length of the subarray.
|
||||
* @return a {@code String} that contains the characters of the
|
||||
* specified subarray of the character array.
|
||||
* @exception IndexOutOfBoundsException if {@code offset} is
|
||||
* @throws IndexOutOfBoundsException if {@code offset} is
|
||||
* negative, or {@code count} is negative, or
|
||||
* {@code offset+count} is larger than
|
||||
* {@code data.length}.
|
||||
|
@ -3391,7 +3391,7 @@ public final class String
|
|||
* @param count length of the subarray.
|
||||
* @return a {@code String} that contains the characters of the
|
||||
* specified subarray of the character array.
|
||||
* @exception IndexOutOfBoundsException if {@code offset} is
|
||||
* @throws IndexOutOfBoundsException if {@code offset} is
|
||||
* negative, or {@code count} is negative, or
|
||||
* {@code offset+count} is larger than
|
||||
* {@code data.length}.
|
||||
|
|
|
@ -199,9 +199,9 @@ interface MethodHandleInfo {
|
|||
* @param expected a class object representing the desired result type {@code T}
|
||||
* @param lookup the lookup object that created this MethodHandleInfo, or one with equivalent access privileges
|
||||
* @return a reference to the method, constructor, or field object
|
||||
* @exception ClassCastException if the member is not of the expected type
|
||||
* @exception NullPointerException if either argument is {@code null}
|
||||
* @exception IllegalArgumentException if the underlying member is not accessible to the given lookup object
|
||||
* @throws ClassCastException if the member is not of the expected type
|
||||
* @throws NullPointerException if either argument is {@code null}
|
||||
* @throws IllegalArgumentException if the underlying member is not accessible to the given lookup object
|
||||
*/
|
||||
public <T extends Member> T reflectAs(Class<T> expected, Lookup lookup);
|
||||
|
||||
|
@ -243,7 +243,7 @@ interface MethodHandleInfo {
|
|||
* The conventional prefix "REF_" is omitted.
|
||||
* @param referenceKind an integer code for a kind of reference used to access a class member
|
||||
* @return a mixed-case string such as {@code "getField"}
|
||||
* @exception IllegalArgumentException if the argument is not a valid
|
||||
* @throws IllegalArgumentException if the argument is not a valid
|
||||
* <a href="MethodHandleInfo.html#refkinds">reference kind number</a>
|
||||
*/
|
||||
public static String referenceKindToString(int referenceKind) {
|
||||
|
@ -278,9 +278,9 @@ interface MethodHandleInfo {
|
|||
* @param name the {@linkplain #getName member name} part of the symbolic reference
|
||||
* @param type the {@linkplain #getMethodType method type} part of the symbolic reference
|
||||
* @return a string of the form {@code "RK C.N:MT"}
|
||||
* @exception IllegalArgumentException if the first argument is not a valid
|
||||
* @throws IllegalArgumentException if the first argument is not a valid
|
||||
* <a href="MethodHandleInfo.html#refkinds">reference kind number</a>
|
||||
* @exception NullPointerException if any reference argument is {@code null}
|
||||
* @throws NullPointerException if any reference argument is {@code null}
|
||||
*/
|
||||
public static String toString(int kind, Class<?> defc, String name, MethodType type) {
|
||||
Objects.requireNonNull(name); Objects.requireNonNull(type);
|
||||
|
|
|
@ -274,10 +274,10 @@ public class MethodHandles {
|
|||
* @param target a direct method handle to crack into symbolic reference components
|
||||
* @param expected a class object representing the desired result type {@code T}
|
||||
* @return a reference to the method, constructor, or field object
|
||||
* @exception SecurityException if the caller is not privileged to call {@code setAccessible}
|
||||
* @exception NullPointerException if either argument is {@code null}
|
||||
* @exception IllegalArgumentException if the target is not a direct method handle
|
||||
* @exception ClassCastException if the member is not of the expected type
|
||||
* @throws SecurityException if the caller is not privileged to call {@code setAccessible}
|
||||
* @throws NullPointerException if either argument is {@code null}
|
||||
* @throws IllegalArgumentException if the target is not a direct method handle
|
||||
* @throws ClassCastException if the member is not of the expected type
|
||||
* @since 1.8
|
||||
*/
|
||||
public static <T extends Member> T
|
||||
|
@ -1754,7 +1754,7 @@ assertEquals("[x, y]", MH_asList.invoke("x", "y").toString());
|
|||
* or if the method is not {@code static},
|
||||
* or if the method's variable arity modifier bit
|
||||
* is set and {@code asVarargsCollector} fails
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @throws NullPointerException if any argument is null
|
||||
*/
|
||||
|
@ -1839,7 +1839,7 @@ assertEquals("", (String) MH_newString.invokeExact());
|
|||
* or if the method is {@code static},
|
||||
* or if the method's variable arity modifier bit
|
||||
* is set and {@code asVarargsCollector} fails
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @throws NullPointerException if any argument is null
|
||||
*/
|
||||
|
@ -1913,7 +1913,7 @@ assertEquals("[x, y, z]", pb.command().toString());
|
|||
* @throws IllegalAccessException if access checking fails
|
||||
* or if the method's variable arity modifier bit
|
||||
* is set and {@code asVarargsCollector} fails
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @throws NullPointerException if any argument is null
|
||||
*/
|
||||
|
@ -1941,13 +1941,13 @@ assertEquals("[x, y, z]", pb.command().toString());
|
|||
*
|
||||
* @param targetName the fully qualified name of the class to be looked up.
|
||||
* @return the requested class.
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @throws LinkageError if the linkage fails
|
||||
* @throws ClassNotFoundException if the class cannot be loaded by the lookup class' loader.
|
||||
* @throws IllegalAccessException if the class is not accessible, using the allowed access
|
||||
* modes.
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
*
|
||||
* @jls 12.2 Loading of Classes and Interfaces
|
||||
|
@ -2022,7 +2022,7 @@ assertEquals("[x, y, z]", pb.command().toString());
|
|||
* @return the class that has been access-checked
|
||||
* @throws IllegalAccessException if the class is not accessible from the lookup class
|
||||
* and previous lookup class, if present, using the allowed access modes.
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @since 9
|
||||
* @see <a href="#cross-module-lookup">Cross-module lookups</a>
|
||||
|
@ -2104,7 +2104,7 @@ assertEquals(""+l, (String) MH_this.invokeExact(subl)); // Listie method
|
|||
* or if the method is {@code static},
|
||||
* or if the method's variable arity modifier bit
|
||||
* is set and {@code asVarargsCollector} fails
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @throws NullPointerException if any argument is null
|
||||
*/
|
||||
|
@ -2129,7 +2129,7 @@ assertEquals(""+l, (String) MH_this.invokeExact(subl)); // Listie method
|
|||
* @return a method handle which can load values from the field
|
||||
* @throws NoSuchFieldException if the field does not exist
|
||||
* @throws IllegalAccessException if access checking fails, or if the field is {@code static}
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @throws NullPointerException if any argument is null
|
||||
* @see #findVarHandle(Class, String, Class)
|
||||
|
@ -2153,7 +2153,7 @@ assertEquals(""+l, (String) MH_this.invokeExact(subl)); // Listie method
|
|||
* @throws NoSuchFieldException if the field does not exist
|
||||
* @throws IllegalAccessException if access checking fails, or if the field is {@code static}
|
||||
* or {@code final}
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @throws NullPointerException if any argument is null
|
||||
* @see #findVarHandle(Class, String, Class)
|
||||
|
@ -2226,7 +2226,7 @@ assertEquals(""+l, (String) MH_this.invokeExact(subl)); // Listie method
|
|||
* @return a VarHandle giving access to non-static fields.
|
||||
* @throws NoSuchFieldException if the field does not exist
|
||||
* @throws IllegalAccessException if access checking fails, or if the field is {@code static}
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @throws NullPointerException if any argument is null
|
||||
* @since 9
|
||||
|
@ -2252,7 +2252,7 @@ assertEquals(""+l, (String) MH_this.invokeExact(subl)); // Listie method
|
|||
* @return a method handle which can load values from the field
|
||||
* @throws NoSuchFieldException if the field does not exist
|
||||
* @throws IllegalAccessException if access checking fails, or if the field is not {@code static}
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @throws NullPointerException if any argument is null
|
||||
*/
|
||||
|
@ -2277,7 +2277,7 @@ assertEquals(""+l, (String) MH_this.invokeExact(subl)); // Listie method
|
|||
* @throws NoSuchFieldException if the field does not exist
|
||||
* @throws IllegalAccessException if access checking fails, or if the field is not {@code static}
|
||||
* or is {@code final}
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @throws NullPointerException if any argument is null
|
||||
*/
|
||||
|
@ -2351,7 +2351,7 @@ assertEquals(""+l, (String) MH_this.invokeExact(subl)); // Listie method
|
|||
* @return a VarHandle giving access to a static field
|
||||
* @throws NoSuchFieldException if the field does not exist
|
||||
* @throws IllegalAccessException if access checking fails, or if the field is not {@code static}
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @throws NullPointerException if any argument is null
|
||||
* @since 9
|
||||
|
@ -2405,7 +2405,7 @@ return mh1;
|
|||
* @throws IllegalAccessException if access checking fails
|
||||
* or if the method's variable arity modifier bit
|
||||
* is set and {@code asVarargsCollector} fails
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @throws NullPointerException if any argument is null
|
||||
* @see MethodHandle#bindTo
|
||||
|
@ -2707,10 +2707,10 @@ return mh1;
|
|||
* and was created by a lookup object for a different class.
|
||||
* @param target a direct method handle to crack into symbolic reference components
|
||||
* @return a symbolic reference which can be used to reconstruct this method handle from this lookup object
|
||||
* @exception SecurityException if a security manager is present and it
|
||||
* @throws SecurityException if a security manager is present and it
|
||||
* <a href="MethodHandles.Lookup.html#secmgr">refuses access</a>
|
||||
* @throws IllegalArgumentException if the target is not a direct method handle or if access checking fails
|
||||
* @exception NullPointerException if the target is {@code null}
|
||||
* @throws NullPointerException if the target is {@code null}
|
||||
* @see MethodHandleInfo
|
||||
* @since 1.8
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 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
|
||||
|
@ -139,4 +139,4 @@ final class VarForm {
|
|||
}
|
||||
return table;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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