From 23bc2c7f78434783ea6982c0b1b2ad97d6376e6a Mon Sep 17 00:00:00 2001 From: Jonathan Moore Date: Fri, 11 Mar 2011 01:32:46 +0000 Subject: [PATCH] + Fix minor typos in private function names. git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1080419 13f79535-47bb-0310-9956-ffa450edef68 --- .../client/cache/CachedResponseSuitabilityChecker.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachedResponseSuitabilityChecker.java b/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachedResponseSuitabilityChecker.java index 42f6ea869..0ca87f96f 100644 --- a/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachedResponseSuitabilityChecker.java +++ b/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachedResponseSuitabilityChecker.java @@ -217,7 +217,7 @@ class CachedResponseSuitabilityChecker { * @return {@code true} if the request is supported */ public boolean isConditional(HttpRequest request) { - return hasSupportedEtagVadlidator(request) || hasSupportedLastModifiedValidator(request); + return hasSupportedEtagValidator(request) || hasSupportedLastModifiedValidator(request); } /** @@ -228,10 +228,10 @@ class CachedResponseSuitabilityChecker { * @return {@code true} if the request matches all conditionals */ public boolean allConditionalsMatch(HttpRequest request, HttpCacheEntry entry, Date now) { - boolean hasEtagValidator = hasSupportedEtagVadlidator(request); + boolean hasEtagValidator = hasSupportedEtagValidator(request); boolean hasLastModifiedValidator = hasSupportedLastModifiedValidator(request); - boolean etagValidatorMatches = (hasEtagValidator) ? etagValidtorMatches(request, entry) : false; + boolean etagValidatorMatches = (hasEtagValidator) ? etagValidatorMatches(request, entry) : false; boolean lastModifiedValidatorMatches = (hasLastModifiedValidator) ? lastModifiedValidatorMatches(request, entry, now) : false; if ((hasEtagValidator && hasLastModifiedValidator) @@ -251,7 +251,7 @@ class CachedResponseSuitabilityChecker { || hasValidDateField(request, "If-Unmodified-Since")); } - private boolean hasSupportedEtagVadlidator(HttpRequest request) { + private boolean hasSupportedEtagValidator(HttpRequest request) { return request.containsHeader(HeaderConstants.IF_NONE_MATCH); } @@ -265,7 +265,7 @@ class CachedResponseSuitabilityChecker { * @param entry * @return */ - private boolean etagValidtorMatches(HttpRequest request, HttpCacheEntry entry) { + private boolean etagValidatorMatches(HttpRequest request, HttpCacheEntry entry) { Header etagHeader = entry.getFirstHeader(HeaderConstants.ETAG); String etag = (etagHeader != null) ? etagHeader.getValue() : null; Header[] ifNoneMatch = request.getHeaders(HeaderConstants.IF_NONE_MATCH);