mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8049892: Replace uses of 'new Integer()' with appropriate alternative across core classes
Reviewed-by: psandoz, prr
This commit is contained in:
parent
d3cca894ad
commit
1ebe2a40a9
119 changed files with 289 additions and 289 deletions
|
@ -650,7 +650,7 @@ class ServerSocket implements java.io.Closeable {
|
|||
public synchronized void setSoTimeout(int timeout) throws SocketException {
|
||||
if (isClosed())
|
||||
throw new SocketException("Socket is closed");
|
||||
getImpl().setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout));
|
||||
getImpl().setOption(SocketOptions.SO_TIMEOUT, timeout);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -847,7 +847,7 @@ class ServerSocket implements java.io.Closeable {
|
|||
}
|
||||
if (isClosed())
|
||||
throw new SocketException("Socket is closed");
|
||||
getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size));
|
||||
getImpl().setOption(SocketOptions.SO_RCVBUF, size);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue