8066633: Fix deprecation warnings in java.rmi module
authorsmarks
Thu, 11 Dec 2014 18:40:05 -0800
changeset 28053 b2366f339e39
parent 28000 6494b13f88a8
child 28054 8b0ef141b964
child 28105 f7963af2ae30
8066633: Fix deprecation warnings in java.rmi module Reviewed-by: darcy, lancea
jdk/src/java.rmi/share/classes/sun/rmi/registry/RegistryImpl.java
--- a/jdk/src/java.rmi/share/classes/sun/rmi/registry/RegistryImpl.java	Wed Jul 05 20:11:08 2017 +0200
+++ b/jdk/src/java.rmi/share/classes/sun/rmi/registry/RegistryImpl.java	Thu Dec 11 18:40:05 2014 -0800
@@ -336,13 +336,12 @@
      * Main program to start a registry. <br>
      * The port number can be specified on the command line.
      */
-    @SuppressWarnings("deprecation")
     public static void main(String args[])
     {
         // Create and install the security manager if one is not installed
         // already.
         if (System.getSecurityManager() == null) {
-            System.setSecurityManager(new RMISecurityManager());
+            System.setSecurityManager(new SecurityManager());
         }
 
         try {