Make constants final
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943279 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
615001b2ea
commit
9e0fcc226d
|
@ -54,10 +54,10 @@ import org.junit.Test;
|
|||
|
||||
public class DoNotTestProtocolRequirements {
|
||||
|
||||
private static ProtocolVersion HTTP_1_1 = new ProtocolVersion("HTTP", 1, 1);
|
||||
private static final ProtocolVersion HTTP_1_1 = new ProtocolVersion("HTTP", 1, 1);
|
||||
|
||||
private static int MAX_BYTES = 1024;
|
||||
private static int MAX_ENTRIES = 100;
|
||||
private static final int MAX_BYTES = 1024;
|
||||
private static final int MAX_ENTRIES = 100;
|
||||
|
||||
private HttpHost host;
|
||||
private HttpEntity mockEntity;
|
||||
|
|
|
@ -40,7 +40,7 @@ import org.junit.Test;
|
|||
|
||||
public class TestCacheEntry {
|
||||
|
||||
private static ProtocolVersion HTTP_1_1 = new ProtocolVersion("HTTP",1,1);
|
||||
private static final ProtocolVersion HTTP_1_1 = new ProtocolVersion("HTTP",1,1);
|
||||
|
||||
@Test
|
||||
public void testGetHeadersReturnsCorrectHeaders() {
|
||||
|
|
|
@ -47,7 +47,7 @@ import org.junit.Test;
|
|||
public class TestCacheEntryUpdater {
|
||||
|
||||
|
||||
private static ProtocolVersion HTTP_1_1 = new ProtocolVersion("HTTP", 1, 1);
|
||||
private static final ProtocolVersion HTTP_1_1 = new ProtocolVersion("HTTP", 1, 1);
|
||||
|
||||
|
||||
private HttpResponse mockResponse;
|
||||
|
|
|
@ -67,7 +67,7 @@ import org.junit.Test;
|
|||
|
||||
public class TestCachingHttpClient {
|
||||
|
||||
private static ProtocolVersion HTTP_1_1 = new ProtocolVersion("HTTP",1,1);
|
||||
private static final ProtocolVersion HTTP_1_1 = new ProtocolVersion("HTTP",1,1);
|
||||
|
||||
private static final String GET_CURRENT_DATE = "getCurrentDate";
|
||||
|
||||
|
|
|
@ -69,8 +69,8 @@ public class TestProtocolDeviations {
|
|||
|
||||
private static ProtocolVersion HTTP_1_1 = new ProtocolVersion("HTTP", 1, 1);
|
||||
|
||||
private static int MAX_BYTES = 1024;
|
||||
private static int MAX_ENTRIES = 100;
|
||||
private static final int MAX_BYTES = 1024;
|
||||
private static final int MAX_ENTRIES = 100;
|
||||
private int entityLength = 128;
|
||||
|
||||
private HttpHost host;
|
||||
|
|
|
@ -70,10 +70,10 @@ import org.junit.Test;
|
|||
*/
|
||||
public class TestProtocolRequirements {
|
||||
|
||||
private static ProtocolVersion HTTP_1_1 = new ProtocolVersion("HTTP", 1, 1);
|
||||
private static final ProtocolVersion HTTP_1_1 = new ProtocolVersion("HTTP", 1, 1);
|
||||
|
||||
private static int MAX_BYTES = 1024;
|
||||
private static int MAX_ENTRIES = 100;
|
||||
private static final int MAX_BYTES = 1024;
|
||||
private static final int MAX_ENTRIES = 100;
|
||||
private int entityLength = 128;
|
||||
|
||||
private HttpHost host;
|
||||
|
|
Loading…
Reference in New Issue