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 int maxCacheEntries;
private int maxUpdateRetries;
private boolean allow303Caching;
private boolean weakETagOnPutDeleteAllowed;
private final boolean allow303Caching;
private final boolean weakETagOnPutDeleteAllowed;
private boolean heuristicCachingEnabled;
private float heuristicCoefficient;
private long heuristicDefaultLifetime;

View File

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

View File

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

View File

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

View File

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