From aad598724621e38922c93df67eb2a2a7ee66a037 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Thu, 4 Jan 2024 13:42:55 +0100 Subject: [PATCH] Corrected version in @since --- .../hc/client5/http/cache/HttpCacheEntry.java | 14 +++++++------- .../client5/http/cache/HttpCacheEntryFactory.java | 2 +- .../hc/client5/http/impl/cache/CacheConfig.java | 2 +- .../hc/client5/http/impl/cache/CacheControl.java | 2 +- .../client5/http/impl/cache/CacheKeyGenerator.java | 4 ++-- .../client5/http/impl/cache/CacheSuitability.java | 2 +- .../hc/client5/http/impl/cache/CacheSupport.java | 2 +- .../cache/CachedResponseSuitabilityChecker.java | 2 +- .../cache/HttpByteArrayCacheEntrySerializer.java | 2 +- .../http/impl/cache/RequestCacheControl.java | 2 +- .../http/impl/cache/ResponseCacheControl.java | 2 +- .../http/impl/cache/ResponseCachingPolicy.java | 2 +- 12 files changed, 19 insertions(+), 19 deletions(-) diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/HttpCacheEntry.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/HttpCacheEntry.java index 3b734ff44..ffaf52766 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/HttpCacheEntry.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/HttpCacheEntry.java @@ -343,7 +343,7 @@ public class HttpCacheEntry implements MessageHeaders, Serializable { } /** - * @since 5.3 + * @since 5.4 */ public MessageHeaders responseHeaders() { return responseHeaders; @@ -415,7 +415,7 @@ public class HttpCacheEntry implements MessageHeaders, Serializable { /** * Returns all known variants. * - * @since 5.3 + * @since 5.4 */ public Set getVariants() { return variants != null ? variants : Collections.emptySet(); @@ -441,28 +441,28 @@ public class HttpCacheEntry implements MessageHeaders, Serializable { } /** - * @since 5.3 + * @since 5.4 */ public String getRequestURI() { return requestURI; } /** - * @since 5.3 + * @since 5.4 */ public MessageHeaders requestHeaders() { return requestHeaders; } /** - * @since 5.3 + * @since 5.4 */ public Iterator
requestHeaderIterator() { return requestHeaders.headerIterator(); } /** - * @since 5.3 + * @since 5.4 */ public Iterator
requestHeaderIterator(final String headerName) { return requestHeaders.headerIterator(headerName); @@ -473,7 +473,7 @@ public class HttpCacheEntry implements MessageHeaders, Serializable { * by comparing values of their {@literal DATE} header. In case the given entry, or the message, * or their {@literal DATE} headers are null, this method returns {@code false}. * - * @since 5.3 + * @since 5.4 */ public static boolean isNewer(final HttpCacheEntry entry, final MessageHeaders message) { if (entry == null || message == null) { diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/HttpCacheEntryFactory.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/HttpCacheEntryFactory.java index ee12c52cf..e2237bac7 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/HttpCacheEntryFactory.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/HttpCacheEntryFactory.java @@ -53,7 +53,7 @@ import org.apache.hc.core5.util.Args; /** * {@link HttpCacheEntry} factory. * - * @since 5.3 + * @since 5.4 */ @Contract(threading = ThreadingBehavior.IMMUTABLE) public class HttpCacheEntryFactory { diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheConfig.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheConfig.java index c1bfc61e0..339673ec9 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheConfig.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheConfig.java @@ -198,7 +198,7 @@ public class CacheConfig implements Cloneable { * * @return {@code true} if HTTP/1.1 responses with query strings should never be cached; * {@code false} otherwise. - * @since 5.3 + * @since 5.4 */ public boolean isNeverCacheHTTP11ResponsesWithQuery() { return neverCacheHTTP11ResponsesWithQuery; diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheControl.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheControl.java index d451a4a19..a836a352e 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheControl.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheControl.java @@ -35,7 +35,7 @@ import org.apache.hc.core5.annotation.ThreadingBehavior; * Represents the values of the Cache-Control header in an HTTP message, which indicate whether and for how long * the response can be cached by the client and intermediary proxies. * - * @since 5.3 + * @since 5.4 */ @Internal @Contract(threading = ThreadingBehavior.IMMUTABLE) diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheKeyGenerator.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheKeyGenerator.java index e02626758..e551713bd 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheKeyGenerator.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheKeyGenerator.java @@ -199,7 +199,7 @@ public class CacheKeyGenerator implements Resolver { /** * Returns all variant names contained in {@literal VARY} headers of the given message. * - * @since 5.3 + * @since 5.4 */ public static List variantNames(final MessageHeaders message) { if (message == null) { @@ -269,7 +269,7 @@ public class CacheKeyGenerator implements Resolver { * @param variantNames variant names * @return variant key * - * @since 5.3 + * @since 5.4 */ public String generateVariantKey(final HttpRequest request, final Collection variantNames) { Args.notNull(variantNames, "Variant names"); diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheSuitability.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheSuitability.java index 7a7e29055..c78c4a701 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheSuitability.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheSuitability.java @@ -28,7 +28,7 @@ package org.apache.hc.client5.http.impl.cache; /** - * @since 5.3 + * @since 5.4 */ enum CacheSuitability { diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheSupport.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheSupport.java index 319941220..f0cb7e7ce 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheSupport.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CacheSupport.java @@ -39,7 +39,7 @@ import org.apache.hc.core5.util.TimeValue; /** * HTTP cache support utilities. * - * @since 5.3 + * @since 5.4 */ @Internal public final class CacheSupport { diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CachedResponseSuitabilityChecker.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CachedResponseSuitabilityChecker.java index 2a655e747..de7d41b4d 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CachedResponseSuitabilityChecker.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CachedResponseSuitabilityChecker.java @@ -78,7 +78,7 @@ class CachedResponseSuitabilityChecker { * Determine if I can utilize the given {@link HttpCacheEntry} to respond to the given * {@link HttpRequest}. * - * @since 5.3 + * @since 5.4 */ public CacheSuitability assessSuitability(final RequestCacheControl requestCacheControl, final ResponseCacheControl responseCacheControl, diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HttpByteArrayCacheEntrySerializer.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HttpByteArrayCacheEntrySerializer.java index 98b0744ef..55f15efb2 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HttpByteArrayCacheEntrySerializer.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HttpByteArrayCacheEntrySerializer.java @@ -69,7 +69,7 @@ import org.slf4j.LoggerFactory; * entry serialization and deserialization. It also includes a default buffer size of 8192 bytes, which can be * overridden by specifying a different buffer size in the constructor. * - * @since 5.3 + * @since 5.4 */ @Contract(threading = ThreadingBehavior.STATELESS) public class HttpByteArrayCacheEntrySerializer implements HttpCacheEntrySerializer { diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/RequestCacheControl.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/RequestCacheControl.java index ef4d1bf8d..441b58bf7 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/RequestCacheControl.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/RequestCacheControl.java @@ -35,7 +35,7 @@ import org.apache.hc.core5.annotation.ThreadingBehavior; * Represents the values of the Cache-Control header in an HTTP request, which indicate whether and for how long * the client is willing to cache the response. * - * @since 5.3 + * @since 5.4 */ @Internal @Contract(threading = ThreadingBehavior.IMMUTABLE) diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCacheControl.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCacheControl.java index cda5c5802..16f563f39 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCacheControl.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCacheControl.java @@ -48,7 +48,7 @@ import org.apache.hc.core5.annotation.ThreadingBehavior; * constructor to create an instance with both values set to -1, indicating that the header was not present in the * response. * - * @since 5.3 + * @since 5.4 */ @Internal @Contract(threading = ThreadingBehavior.IMMUTABLE) diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCachingPolicy.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCachingPolicy.java index 93d7dc27b..859776bbe 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCachingPolicy.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCachingPolicy.java @@ -71,7 +71,7 @@ class ResponseCachingPolicy { * {@code false} to cache if explicit cache headers are found. * @param neverCache1_1ResponsesWithQueryString {@code true} to never cache HTTP 1.1 responses with a query string, * {@code false} to cache if explicit cache headers are found. - * @since 5.3 + * @since 5.4 */ public ResponseCachingPolicy( final boolean sharedCache,