< prev index next >

src/java.rmi/share/classes/java/rmi/server/RemoteObject.java

Print this page

        

@@ -92,10 +92,11 @@
      * @return the stub for the remote object, <code>obj</code>.
      * @exception NoSuchObjectException if the stub for the
      * remote object could not be found.
      * @since 1.2
      */
+    @SuppressWarnings("deprecation")
     public static Remote toStub(Remote obj) throws NoSuchObjectException {
         if (obj instanceof RemoteStub ||
             (obj != null &&
              Proxy.isProxyClass(obj.getClass()) &&
              Proxy.getInvocationHandler(obj) instanceof
< prev index next >