8155963: Fix deprecation warning in windows java.net implementation
Reviewed-by: prr
This commit is contained in:
parent
01ee88c8ae
commit
bd838767a7
@ -90,7 +90,9 @@ class DefaultDatagramSocketImplFactory
|
||||
throws SocketException {
|
||||
if (prefixImplClass != null) {
|
||||
try {
|
||||
return (DatagramSocketImpl) prefixImplClass.newInstance();
|
||||
@SuppressWarnings("deprecation")
|
||||
Object result = prefixImplClass.newInstance();
|
||||
return (DatagramSocketImpl) result;
|
||||
} catch (Exception e) {
|
||||
throw new SocketException("can't instantiate DatagramSocketImpl");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user