Add final modifier to private fields.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1726967 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2016-01-27 09:00:25 +00:00
parent 8a27962f79
commit 9d5dde271f
5 changed files with 7 additions and 7 deletions

View File

@ -164,8 +164,8 @@ public class CacheConfig implements Cloneable {
private long maxObjectSize; private long maxObjectSize;
private int maxCacheEntries; private int maxCacheEntries;
private int maxUpdateRetries; private int maxUpdateRetries;
private boolean allow303Caching; private final boolean allow303Caching;
private boolean weakETagOnPutDeleteAllowed; private final boolean weakETagOnPutDeleteAllowed;
private boolean heuristicCachingEnabled; private boolean heuristicCachingEnabled;
private float heuristicCoefficient; private float heuristicCoefficient;
private long heuristicDefaultLifetime; private long heuristicDefaultLifetime;

View File

@ -45,7 +45,7 @@ import org.apache.http.protocol.HttpContext;
@Immutable @Immutable
public class WindowsNTLMSchemeFactory implements AuthSchemeProvider { public class WindowsNTLMSchemeFactory implements AuthSchemeProvider {
private String servicePrincipalName; private final String servicePrincipalName;
public WindowsNTLMSchemeFactory(final String servicePrincipalName) { public WindowsNTLMSchemeFactory(final String servicePrincipalName) {
super(); super();

View File

@ -45,7 +45,7 @@ import org.apache.http.protocol.HttpContext;
@Immutable @Immutable
public class WindowsNegotiateSchemeFactory implements AuthSchemeProvider { public class WindowsNegotiateSchemeFactory implements AuthSchemeProvider {
private String servicePrincipalName; private final String servicePrincipalName;
public WindowsNegotiateSchemeFactory(final String servicePrincipalName) { public WindowsNegotiateSchemeFactory(final String servicePrincipalName) {
super(); super();

View File

@ -68,8 +68,8 @@ public class SSLContextBuilder {
static final String SSL = "SSL"; static final String SSL = "SSL";
private String protocol; private String protocol;
private Set<KeyManager> keymanagers; private final Set<KeyManager> keymanagers;
private Set<TrustManager> trustmanagers; private final Set<TrustManager> trustmanagers;
private SecureRandom secureRandom; private SecureRandom secureRandom;
public SSLContextBuilder() { public SSLContextBuilder() {

View File

@ -39,7 +39,7 @@ import java.util.zip.ZipException;
*/ */
public class DeflateInputStream extends InputStream { public class DeflateInputStream extends InputStream {
private InputStream sourceStream; private final InputStream sourceStream;
public DeflateInputStream(final InputStream wrapped) throws IOException { public DeflateInputStream(final InputStream wrapped) throws IOException {