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:
Sebastian Bazley 2010-05-11 20:29:47 +00:00
parent 615001b2ea
commit 9e0fcc226d
6 changed files with 11 additions and 11 deletions

View File

@ -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;

View File

@ -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() {

View File

@ -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;

View File

@ -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";

View File

@ -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;

View File

@ -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;