diff -r 9d463b9408ba -r 7c523cf2bc8a jdk/test/java/net/URLConnection/DisconnectAfterEOF.java --- a/jdk/test/java/net/URLConnection/DisconnectAfterEOF.java Tue Jul 20 10:41:50 2010 -0400 +++ b/jdk/test/java/net/URLConnection/DisconnectAfterEOF.java Wed Jul 21 13:29:26 2010 +0100 @@ -56,7 +56,6 @@ int cl = -1; int remaining = -1; StringBuffer sb = new StringBuffer(); - Random r = new Random(); boolean close = false; boolean inBody = false; @@ -239,8 +238,6 @@ } public static void main(String args[]) throws Exception { - Random r = new Random(); - // start server ServerSocket ss = new ServerSocket(0); Server svr = new Server(ss); @@ -273,7 +270,7 @@ URLConnection uc1 = doRequest(uri); doResponse(uc1); - Thread.currentThread().sleep(2000); + Thread.sleep(2000); URLConnection uc2 = doRequest(uri);