8049892: Replace uses of 'new Integer()' with appropriate alternative across core classes

Reviewed-by: psandoz, prr
This commit is contained in:
Otavio Goncalves de Santana 2014-07-15 11:22:14 -07:00 committed by Phil Race
parent d3cca894ad
commit 1ebe2a40a9
119 changed files with 289 additions and 289 deletions

View file

@ -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);
}
/**