mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-19 23:05:28 +00:00
8066633: Fix deprecation warnings in java.rmi module
Reviewed-by: darcy, lancea
This commit is contained in:
parent
f6c045bef0
commit
7cbda8ab50
@ -336,13 +336,12 @@ public class RegistryImpl extends java.rmi.server.RemoteServer
|
||||
* 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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user