6600143: Remove another 450 unnecessary casts

Reviewed-by: alanb, iris, lmalvent, bristor, peterjones, darcy, wetmore
This commit is contained in:
Martin Buchholz 2008-03-10 15:07:09 -07:00
parent f3d6a3bd3b
commit 4341094beb
147 changed files with 1215 additions and 1415 deletions

View file

@ -247,8 +247,9 @@ class ServerSocket implements java.io.Closeable {
// SocketImpl.connect() is a protected method, therefore we need to use
// getDeclaredMethod, therefore we need permission to access the member
try {
AccessController.doPrivileged(new PrivilegedExceptionAction() {
public Object run() throws NoSuchMethodException {
AccessController.doPrivileged(
new PrivilegedExceptionAction<Void>() {
public Void run() throws NoSuchMethodException {
Class[] cl = new Class[2];
cl[0] = SocketAddress.class;
cl[1] = Integer.TYPE;