changeset 8710:28459ff19e0d

8022440: suppress deprecation warnings in sun.rmi Reviewed-by: mduigou
author smarks
date Wed, 12 Jul 2017 03:18:46 +0100
parents 366c03690390
children aac0cba4d82e
files src/share/classes/sun/rmi/runtime/Log.java src/share/classes/sun/rmi/server/ActivatableRef.java src/share/classes/sun/rmi/server/Dispatcher.java src/share/classes/sun/rmi/server/LoaderHandler.java src/share/classes/sun/rmi/server/UnicastRef.java src/share/classes/sun/rmi/server/UnicastServerRef.java src/share/classes/sun/rmi/server/Util.java src/share/classes/sun/rmi/transport/DGCImpl.java src/share/classes/sun/rmi/transport/StreamRemoteCall.java src/share/classes/sun/rmi/transport/Transport.java src/share/classes/sun/rmi/transport/proxy/RMIMasterSocketFactory.java src/share/classes/sun/rmi/transport/tcp/ConnectionMultiplexer.java src/share/classes/sun/rmi/transport/tcp/TCPTransport.java
diffstat 13 files changed, 23 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/rmi/runtime/Log.java	Thu Oct 06 09:19:32 2016 -0700
+++ b/src/share/classes/sun/rmi/runtime/Log.java	Wed Jul 12 03:18:46 2017 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2013, 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,6 +61,7 @@
  * @author Laird Dornin
  * @since 1.4
  */
+@SuppressWarnings("deprecation")
 public abstract class Log {
 
     /** Logger re-definition of old RMI log values */
--- a/src/share/classes/sun/rmi/server/ActivatableRef.java	Thu Oct 06 09:19:32 2016 -0700
+++ b/src/share/classes/sun/rmi/server/ActivatableRef.java	Wed Jul 12 03:18:46 2017 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2013, 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
@@ -41,6 +41,7 @@
 import java.rmi.server.RemoteRef;
 import java.rmi.server.RemoteStub;
 
+@SuppressWarnings("deprecation")
 public class ActivatableRef implements RemoteRef {
 
     private static final long serialVersionUID = 7579060052569229166L;
--- a/src/share/classes/sun/rmi/server/Dispatcher.java	Thu Oct 06 09:19:32 2016 -0700
+++ b/src/share/classes/sun/rmi/server/Dispatcher.java	Wed Jul 12 03:18:46 2017 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2013, 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
@@ -31,6 +31,7 @@
  * The Dispatcher interface allows the transport to make
  * the upcall to the server side remote reference.
  */
+@SuppressWarnings("deprecation")
 public interface Dispatcher {
 
     /**
--- a/src/share/classes/sun/rmi/server/LoaderHandler.java	Thu Oct 06 09:19:32 2016 -0700
+++ b/src/share/classes/sun/rmi/server/LoaderHandler.java	Wed Jul 12 03:18:46 2017 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2013, 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
@@ -67,6 +67,7 @@
  * @author      Peter Jones
  * @author      Laird Dornin
  */
+@SuppressWarnings("deprecation")
 public final class LoaderHandler {
 
     /** RMI class loader log level */
--- a/src/share/classes/sun/rmi/server/UnicastRef.java	Thu Oct 06 09:19:32 2016 -0700
+++ b/src/share/classes/sun/rmi/server/UnicastRef.java	Wed Jul 12 03:18:46 2017 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2013, 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
@@ -49,7 +49,8 @@
  * NOTE: There is a JDK-internal dependency on the existence of this
  * class's getLiveRef method (as it is inherited by UnicastRef2) in
  * the implementation of javax.management.remote.rmi.RMIConnector.
- **/
+ */
+@SuppressWarnings("deprecation")
 public class UnicastRef implements RemoteRef {
 
     /**
--- a/src/share/classes/sun/rmi/server/UnicastServerRef.java	Thu Oct 06 09:19:32 2016 -0700
+++ b/src/share/classes/sun/rmi/server/UnicastServerRef.java	Wed Jul 12 03:18:46 2017 +0100
@@ -74,6 +74,7 @@
  * @author  Roger Riggs
  * @author  Peter Jones
  */
+@SuppressWarnings("deprecation")
 public class UnicastServerRef extends UnicastRef
     implements ServerRef, Dispatcher
 {
--- a/src/share/classes/sun/rmi/server/Util.java	Thu Oct 06 09:19:32 2016 -0700
+++ b/src/share/classes/sun/rmi/server/Util.java	Wed Jul 12 03:18:46 2017 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2013, 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
@@ -63,6 +63,7 @@
  * A utility class with static methods for creating stubs/proxies and
  * skeletons for remote objects.
  */
+@SuppressWarnings("deprecation")
 public final class Util {
 
     /** "server" package log level */
--- a/src/share/classes/sun/rmi/transport/DGCImpl.java	Thu Oct 06 09:19:32 2016 -0700
+++ b/src/share/classes/sun/rmi/transport/DGCImpl.java	Wed Jul 12 03:18:46 2017 +0100
@@ -68,6 +68,7 @@
  *
  * @author Ann Wollrath
  */
+@SuppressWarnings("deprecation")
 final class DGCImpl implements DGC {
 
     /* dgc system log */
--- a/src/share/classes/sun/rmi/transport/StreamRemoteCall.java	Thu Oct 06 09:19:32 2016 -0700
+++ b/src/share/classes/sun/rmi/transport/StreamRemoteCall.java	Wed Jul 12 03:18:46 2017 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2013, 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
@@ -45,6 +45,7 @@
  *
  * @author Ann Wollrath
  */
+@SuppressWarnings("deprecation")
 public class StreamRemoteCall implements RemoteCall {
     private ConnectionInputStream in = null;
     private ConnectionOutputStream out = null;
--- a/src/share/classes/sun/rmi/transport/Transport.java	Thu Oct 06 09:19:32 2016 -0700
+++ b/src/share/classes/sun/rmi/transport/Transport.java	Wed Jul 12 03:18:46 2017 +0100
@@ -51,6 +51,7 @@
  *
  * @author Ann Wollrath
  */
+@SuppressWarnings("deprecation")
 public abstract class Transport {
 
     /** "transport" package log level */
--- a/src/share/classes/sun/rmi/transport/proxy/RMIMasterSocketFactory.java	Thu Oct 06 09:19:32 2016 -0700
+++ b/src/share/classes/sun/rmi/transport/proxy/RMIMasterSocketFactory.java	Wed Jul 12 03:18:46 2017 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2013, 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
@@ -44,6 +44,7 @@
  * connect to the same host will automatically use the same
  * mechanism.
  */
+@SuppressWarnings("deprecation")
 public class RMIMasterSocketFactory extends RMISocketFactory {
 
     /** "proxy" package log level */
--- a/src/share/classes/sun/rmi/transport/tcp/ConnectionMultiplexer.java	Thu Oct 06 09:19:32 2016 -0700
+++ b/src/share/classes/sun/rmi/transport/tcp/ConnectionMultiplexer.java	Wed Jul 12 03:18:46 2017 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2013, 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
@@ -43,6 +43,7 @@
  *
  * @author Peter Jones
  */
+@SuppressWarnings("deprecation")
 final class ConnectionMultiplexer {
 
     /** "multiplex" log level */
--- a/src/share/classes/sun/rmi/transport/tcp/TCPTransport.java	Thu Oct 06 09:19:32 2016 -0700
+++ b/src/share/classes/sun/rmi/transport/tcp/TCPTransport.java	Wed Jul 12 03:18:46 2017 +0100
@@ -87,6 +87,7 @@
  * @author Ann Wollrath
  * @author Peter Jones
  */
+@SuppressWarnings("deprecation")
 public class TCPTransport extends Transport {
 
     /* tcp package log */