8252538: Replace @exception with @throws java.rmi package

Reviewed-by: rriggs
This commit is contained in:
Vipin Sharma 2020-09-03 09:28:24 -04:00
parent 43d36857d0
commit 57a27a6fb9
2 changed files with 36 additions and 36 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -107,9 +107,9 @@ public final class MarshalledObject<T> implements Serializable {
* parameters for RMI calls. * parameters for RMI calls.
* *
* @param obj the object to be serialized (must be serializable) * @param obj the object to be serialized (must be serializable)
* @exception IOException if an <code>IOException</code> occurs; an * @throws IOException if an <code>IOException</code> occurs; an
* <code>IOException</code> may occur if <code>obj</code> is not * <code>IOException</code> may occur if <code>obj</code> is not
* serializable. * serializable.
* @since 1.2 * @since 1.2
*/ */
public MarshalledObject(T obj) throws IOException { public MarshalledObject(T obj) throws IOException {
@ -161,12 +161,12 @@ public final class MarshalledObject<T> implements Serializable {
* the filter from that stream is used to deserialize the object. * the filter from that stream is used to deserialize the object.
* *
* @return a copy of the contained object * @return a copy of the contained object
* @exception IOException if an <code>IOException</code> occurs while * @throws IOException if an <code>IOException</code> occurs while
* deserializing the object from its internal representation. * deserializing the object from its internal representation.
* @exception ClassNotFoundException if a * @throws ClassNotFoundException if a
* <code>ClassNotFoundException</code> occurs while deserializing the * <code>ClassNotFoundException</code> occurs while deserializing
* object from its internal representation. * the object from its internal representation.
* could not be found * could not be found
* @since 1.2 * @since 1.2
*/ */
public T get() throws IOException, ClassNotFoundException { public T get() throws IOException, ClassNotFoundException {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -81,10 +81,10 @@ public final class Naming {
* *
* @param name a name in URL format (without the scheme component) * @param name a name in URL format (without the scheme component)
* @return a reference for a remote object * @return a reference for a remote object
* @exception NotBoundException if name is not currently bound * @throws NotBoundException if name is not currently bound
* @exception RemoteException if registry could not be contacted * @throws RemoteException if registry could not be contacted
* @exception AccessException if this operation is not permitted * @throws AccessException if this operation is not permitted
* @exception MalformedURLException if the name is not an appropriately * @throws MalformedURLException if the name is not an appropriately
* formatted URL * formatted URL
* @since 1.1 * @since 1.1
*/ */
@ -106,12 +106,12 @@ public final class Naming {
* *
* @param name a name in URL format (without the scheme component) * @param name a name in URL format (without the scheme component)
* @param obj a reference for the remote object (usually a stub) * @param obj a reference for the remote object (usually a stub)
* @exception AlreadyBoundException if name is already bound * @throws AlreadyBoundException if name is already bound
* @exception MalformedURLException if the name is not an appropriately * @throws MalformedURLException if the name is not an appropriately
* formatted URL * formatted URL
* @exception RemoteException if registry could not be contacted * @throws RemoteException if registry could not be contacted
* @exception AccessException if this operation is not permitted (if * @throws AccessException if this operation is not permitted (if
* originating from a non-local host, for example) * originating from a non-local host, for example)
* @since 1.1 * @since 1.1
*/ */
public static void bind(String name, Remote obj) public static void bind(String name, Remote obj)
@ -133,12 +133,12 @@ public final class Naming {
* with a remote object. * with a remote object.
* *
* @param name a name in URL format (without the scheme component) * @param name a name in URL format (without the scheme component)
* @exception NotBoundException if name is not currently bound * @throws NotBoundException if name is not currently bound
* @exception MalformedURLException if the name is not an appropriately * @throws MalformedURLException if the name is not an appropriately
* formatted URL * formatted URL
* @exception RemoteException if registry could not be contacted * @throws RemoteException if registry could not be contacted
* @exception AccessException if this operation is not permitted (if * @throws AccessException if this operation is not permitted (if
* originating from a non-local host, for example) * originating from a non-local host, for example)
* @since 1.1 * @since 1.1
*/ */
public static void unbind(String name) public static void unbind(String name)
@ -158,11 +158,11 @@ public final class Naming {
* *
* @param name a name in URL format (without the scheme component) * @param name a name in URL format (without the scheme component)
* @param obj new remote object to associate with the name * @param obj new remote object to associate with the name
* @exception MalformedURLException if the name is not an appropriately * @throws MalformedURLException if the name is not an appropriately
* formatted URL * formatted URL
* @exception RemoteException if registry could not be contacted * @throws RemoteException if registry could not be contacted
* @exception AccessException if this operation is not permitted (if * @throws AccessException if this operation is not permitted (if
* originating from a non-local host, for example) * originating from a non-local host, for example)
* @since 1.1 * @since 1.1
*/ */
public static void rebind(String name, Remote obj) public static void rebind(String name, Remote obj)
@ -187,9 +187,9 @@ public final class Naming {
* component) * component)
* @return an array of names (in the appropriate format) bound * @return an array of names (in the appropriate format) bound
* in the registry * in the registry
* @exception MalformedURLException if the name is not an appropriately * @throws MalformedURLException if the name is not an appropriately
* formatted URL * formatted URL
* @exception RemoteException if registry could not be contacted. * @throws RemoteException if registry could not be contacted.
* @since 1.1 * @since 1.1
*/ */
public static String[] list(String name) public static String[] list(String name)
@ -228,7 +228,7 @@ public final class Naming {
* @return an object which contains each of the above * @return an object which contains each of the above
* components. * components.
* *
* @exception MalformedURLException if given url string is malformed * @throws MalformedURLException if given url string is malformed
*/ */
private static ParsedNamingURL parseURL(String str) private static ParsedNamingURL parseURL(String str)
throws MalformedURLException throws MalformedURLException