diff --git a/test/jdk/java/net/URLConnection/ResendPostBody.java b/test/jdk/java/net/URLConnection/ResendPostBody.java index a8fec538ebb..f3c16a3754d 100644 --- a/test/jdk/java/net/URLConnection/ResendPostBody.java +++ b/test/jdk/java/net/URLConnection/ResendPostBody.java @@ -51,100 +51,109 @@ public class ResendPostBody { static class Server extends Thread { - InputStream in; - OutputStream out; - Socket sock; - StringBuffer response; - ServerSocket server; + private InputStream in; + private OutputStream out; + private Socket sock; + private StringBuffer response; + private ServerSocket server; - Server (ServerSocket s) throws IOException - { + Server(ServerSocket s) throws IOException { server = s; } - void waitFor (String s) throws IOException - { - byte[] w = s.getBytes (); - for(int c=0; c