OpenJDK / portola / portola
changeset 28053:b2366f339e39
8066633: Fix deprecation warnings in java.rmi module
Reviewed-by: darcy, lancea
author | smarks |
---|---|
date | Thu, 11 Dec 2014 18:40:05 -0800 |
parents | 6494b13f88a8 |
children | 8b0ef141b964 f7963af2ae30 |
files | jdk/src/java.rmi/share/classes/sun/rmi/registry/RegistryImpl.java |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 {