Make inner class static
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@899963 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0198742071
commit
a2ff2dc9dd
|
@ -93,7 +93,7 @@ public class TestRedirects extends BasicServerTestBase {
|
|||
localServer.start();
|
||||
}
|
||||
|
||||
private class BasicRedirectService implements HttpRequestHandler {
|
||||
private static class BasicRedirectService implements HttpRequestHandler {
|
||||
|
||||
private int statuscode = HttpStatus.SC_MOVED_TEMPORARILY;
|
||||
private String host = null;
|
||||
|
@ -133,7 +133,7 @@ public class TestRedirects extends BasicServerTestBase {
|
|||
}
|
||||
}
|
||||
|
||||
private class CircularRedirectService implements HttpRequestHandler {
|
||||
private static class CircularRedirectService implements HttpRequestHandler {
|
||||
|
||||
public CircularRedirectService() {
|
||||
super();
|
||||
|
@ -157,7 +157,7 @@ public class TestRedirects extends BasicServerTestBase {
|
|||
}
|
||||
}
|
||||
|
||||
private class RelativeRedirectService implements HttpRequestHandler {
|
||||
private static class RelativeRedirectService implements HttpRequestHandler {
|
||||
|
||||
public RelativeRedirectService() {
|
||||
super();
|
||||
|
@ -182,7 +182,7 @@ public class TestRedirects extends BasicServerTestBase {
|
|||
}
|
||||
}
|
||||
|
||||
private class RelativeRedirectService2 implements HttpRequestHandler {
|
||||
private static class RelativeRedirectService2 implements HttpRequestHandler {
|
||||
|
||||
public RelativeRedirectService2() {
|
||||
super();
|
||||
|
@ -207,7 +207,7 @@ public class TestRedirects extends BasicServerTestBase {
|
|||
}
|
||||
}
|
||||
|
||||
private class BogusRedirectService implements HttpRequestHandler {
|
||||
private static class BogusRedirectService implements HttpRequestHandler {
|
||||
private String url;
|
||||
|
||||
public BogusRedirectService(String redirectUrl) {
|
||||
|
|
|
@ -67,7 +67,7 @@ public class TestUriEscapes extends BasicServerTestBase {
|
|||
localServer.start();
|
||||
}
|
||||
|
||||
private class UriListeningService implements HttpRequestHandler {
|
||||
private static class UriListeningService implements HttpRequestHandler {
|
||||
|
||||
private volatile String requestedUri;
|
||||
|
||||
|
|
|
@ -328,7 +328,7 @@ public class TestDefaultClientRequestDirector extends BasicServerTestBase {
|
|||
}
|
||||
}
|
||||
|
||||
private class BasicRedirectService implements HttpRequestHandler {
|
||||
private static class BasicRedirectService implements HttpRequestHandler {
|
||||
private int statuscode = HttpStatus.SC_SEE_OTHER;
|
||||
private int port;
|
||||
|
||||
|
@ -584,7 +584,7 @@ public class TestDefaultClientRequestDirector extends BasicServerTestBase {
|
|||
|
||||
}
|
||||
|
||||
private class SimpleService implements HttpRequestHandler {
|
||||
private static class SimpleService implements HttpRequestHandler {
|
||||
|
||||
public SimpleService() {
|
||||
super();
|
||||
|
|
|
@ -75,7 +75,7 @@ public class TestRequestWrapper extends BasicServerTestBase {
|
|||
localServer.start();
|
||||
}
|
||||
|
||||
private class SimpleService implements HttpRequestHandler {
|
||||
private static class SimpleService implements HttpRequestHandler {
|
||||
|
||||
public SimpleService() {
|
||||
super();
|
||||
|
|
|
@ -69,7 +69,7 @@ public class TestStatefulConnManagement extends ServerTestBase {
|
|||
return new TestSuite(TestStatefulConnManagement.class);
|
||||
}
|
||||
|
||||
private class SimpleService implements HttpRequestHandler {
|
||||
private static class SimpleService implements HttpRequestHandler {
|
||||
|
||||
public SimpleService() {
|
||||
super();
|
||||
|
|
Loading…
Reference in New Issue