+1

Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive
Burlington, MA 01803
lance.ander...@oracle.com
Sent from my iPad

> On Dec 4, 2014, at 9:23 PM, joe darcy <joe.da...@oracle.com> wrote:
> 
> Hello,
> 
> Please review the small fix below for
> 
>    JDK-8066641: Suppress deprecation warnings in jdk.naming module
> 
> Thanks,
> 
> -Joe
> 
> diff -r ab3ff449ba9a 
> src/jdk.naming.rmi/share/classes/com/sun/jndi/rmi/registry/RegistryContext.java
> --- 
> a/src/jdk.naming.rmi/share/classes/com/sun/jndi/rmi/registry/RegistryContext.java
>  Thu Dec 04 15:04:11 2014 -0800
> +++ 
> b/src/jdk.naming.rmi/share/classes/com/sun/jndi/rmi/registry/RegistryContext.java
>  Thu Dec 04 18:22:35 2014 -0800
> @@ -1,5 +1,5 @@
> /*
> - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights 
> reserved.
> + * Copyright (c) 1999, 2014, 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
> @@ -353,6 +353,7 @@
>     /**
>      * Wrap a RemoteException inside a NamingException.
>      */
> +    @SuppressWarnings("deprecation")
>     public static NamingException wrapRemoteException(RemoteException re) {
> 
>         NamingException ne;
> @@ -413,6 +414,7 @@
>      * Attempts to install a security manager if none is currently in
>      * place.
>      */
> +    @SuppressWarnings("deprecation")
>     private static void installSecurityMgr() {
> 
>         try {
> 

Reply via email to