8252538: Replace @exception with @throws java.rmi package
Reviewed-by: rriggs
This commit is contained in:
parent
43d36857d0
commit
57a27a6fb9
@ -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.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @param obj the object to be serialized (must be serializable)
|
||||
* @exception IOException if an <code>IOException</code> occurs; an
|
||||
* <code>IOException</code> may occur if <code>obj</code> is not
|
||||
* serializable.
|
||||
* @throws IOException if an <code>IOException</code> occurs; an
|
||||
* <code>IOException</code> may occur if <code>obj</code> is not
|
||||
* serializable.
|
||||
* @since 1.2
|
||||
*/
|
||||
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.
|
||||
*
|
||||
* @return a copy of the contained object
|
||||
* @exception IOException if an <code>IOException</code> occurs while
|
||||
* deserializing the object from its internal representation.
|
||||
* @exception ClassNotFoundException if a
|
||||
* <code>ClassNotFoundException</code> occurs while deserializing the
|
||||
* object from its internal representation.
|
||||
* could not be found
|
||||
* @throws IOException if an <code>IOException</code> occurs while
|
||||
* deserializing the object from its internal representation.
|
||||
* @throws ClassNotFoundException if a
|
||||
* <code>ClassNotFoundException</code> occurs while deserializing
|
||||
* the object from its internal representation.
|
||||
* could not be found
|
||||
* @since 1.2
|
||||
*/
|
||||
public T get() throws IOException, ClassNotFoundException {
|
||||
|
@ -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.
|
||||
*
|
||||
* 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)
|
||||
* @return a reference for a remote object
|
||||
* @exception NotBoundException if name is not currently bound
|
||||
* @exception RemoteException if registry could not be contacted
|
||||
* @exception AccessException if this operation is not permitted
|
||||
* @exception MalformedURLException if the name is not an appropriately
|
||||
* @throws NotBoundException if name is not currently bound
|
||||
* @throws RemoteException if registry could not be contacted
|
||||
* @throws AccessException if this operation is not permitted
|
||||
* @throws MalformedURLException if the name is not an appropriately
|
||||
* formatted URL
|
||||
* @since 1.1
|
||||
*/
|
||||
@ -106,12 +106,12 @@ public final class Naming {
|
||||
*
|
||||
* @param name a name in URL format (without the scheme component)
|
||||
* @param obj a reference for the remote object (usually a stub)
|
||||
* @exception AlreadyBoundException if name is already bound
|
||||
* @exception MalformedURLException if the name is not an appropriately
|
||||
* formatted URL
|
||||
* @exception RemoteException if registry could not be contacted
|
||||
* @exception AccessException if this operation is not permitted (if
|
||||
* originating from a non-local host, for example)
|
||||
* @throws AlreadyBoundException if name is already bound
|
||||
* @throws MalformedURLException if the name is not an appropriately
|
||||
* formatted URL
|
||||
* @throws RemoteException if registry could not be contacted
|
||||
* @throws AccessException if this operation is not permitted (if
|
||||
* originating from a non-local host, for example)
|
||||
* @since 1.1
|
||||
*/
|
||||
public static void bind(String name, Remote obj)
|
||||
@ -133,12 +133,12 @@ public final class Naming {
|
||||
* with a remote object.
|
||||
*
|
||||
* @param name a name in URL format (without the scheme component)
|
||||
* @exception NotBoundException if name is not currently bound
|
||||
* @exception MalformedURLException if the name is not an appropriately
|
||||
* formatted URL
|
||||
* @exception RemoteException if registry could not be contacted
|
||||
* @exception AccessException if this operation is not permitted (if
|
||||
* originating from a non-local host, for example)
|
||||
* @throws NotBoundException if name is not currently bound
|
||||
* @throws MalformedURLException if the name is not an appropriately
|
||||
* formatted URL
|
||||
* @throws RemoteException if registry could not be contacted
|
||||
* @throws AccessException if this operation is not permitted (if
|
||||
* originating from a non-local host, for example)
|
||||
* @since 1.1
|
||||
*/
|
||||
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 obj new remote object to associate with the name
|
||||
* @exception MalformedURLException if the name is not an appropriately
|
||||
* formatted URL
|
||||
* @exception RemoteException if registry could not be contacted
|
||||
* @exception AccessException if this operation is not permitted (if
|
||||
* originating from a non-local host, for example)
|
||||
* @throws MalformedURLException if the name is not an appropriately
|
||||
* formatted URL
|
||||
* @throws RemoteException if registry could not be contacted
|
||||
* @throws AccessException if this operation is not permitted (if
|
||||
* originating from a non-local host, for example)
|
||||
* @since 1.1
|
||||
*/
|
||||
public static void rebind(String name, Remote obj)
|
||||
@ -187,9 +187,9 @@ public final class Naming {
|
||||
* component)
|
||||
* @return an array of names (in the appropriate format) bound
|
||||
* in the registry
|
||||
* @exception MalformedURLException if the name is not an appropriately
|
||||
* formatted URL
|
||||
* @exception RemoteException if registry could not be contacted.
|
||||
* @throws MalformedURLException if the name is not an appropriately
|
||||
* formatted URL
|
||||
* @throws RemoteException if registry could not be contacted.
|
||||
* @since 1.1
|
||||
*/
|
||||
public static String[] list(String name)
|
||||
@ -228,7 +228,7 @@ public final class Naming {
|
||||
* @return an object which contains each of the above
|
||||
* components.
|
||||
*
|
||||
* @exception MalformedURLException if given url string is malformed
|
||||
* @throws MalformedURLException if given url string is malformed
|
||||
*/
|
||||
private static ParsedNamingURL parseURL(String str)
|
||||
throws MalformedURLException
|
||||
|
Loading…
x
Reference in New Issue
Block a user