No warning
No warning, if there's a warning, it cannot be called good code
This commit is contained in:
parent
bb12e44f1b
commit
ccc212b13f
|
@ -6,7 +6,6 @@ import java.nio.charset.Charset;
|
|||
import java.util.StringTokenizer;
|
||||
|
||||
import org.apache.commons.httpclient.ChunkedInputStream;
|
||||
import org.apache.commons.httpclient.ChunkedOutputStream;
|
||||
import org.apache.commons.io.output.ByteArrayOutputStream;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package org.bench4q.recorder;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.ServerSocket;
|
||||
|
||||
import org.apache.commons.httpclient.HostConfiguration;
|
||||
import org.apache.commons.httpclient.HttpClient;
|
||||
|
@ -15,6 +14,7 @@ import org.junit.Test;
|
|||
|
||||
public class Test_RequestHandler {
|
||||
private static final int PORT = 8910;
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
try {
|
||||
|
@ -34,6 +34,8 @@ public class Test_RequestHandler {
|
|||
|
||||
private static class SendRequest implements Runnable {
|
||||
private HttpClient httpClient = new HttpClient();
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public void run() {
|
||||
HostConfiguration hostConfiguration = new HostConfiguration();
|
||||
hostConfiguration.setProxy("127.0.0.1", PORT);
|
||||
|
|
Loading…
Reference in New Issue