You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2015/08/27 06:59:38 UTC

svn commit: r1698078 - /httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/ResponseCachingPolicy.java

Author: ggregory
Date: Thu Aug 27 04:59:37 2015
New Revision: 1698078

URL: http://svn.apache.org/r1698078
Log:
Redundant specification of type arguments.

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/ResponseCachingPolicy.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/ResponseCachingPolicy.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/ResponseCachingPolicy.java?rev=1698078&r1=1698077&r2=1698078&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/ResponseCachingPolicy.java (original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/ResponseCachingPolicy.java Thu Aug 27 04:59:37 2015
@@ -61,7 +61,7 @@ class ResponseCachingPolicy {
     private final boolean neverCache1_0ResponsesWithQueryString;
     private final Log log = LogFactory.getLog(getClass());
     private static final Set<Integer> cacheableStatuses =
-        new HashSet<Integer>(Arrays.asList(HttpStatus.SC_OK,
+        new HashSet<>(Arrays.asList(HttpStatus.SC_OK,
                 HttpStatus.SC_NON_AUTHORITATIVE_INFORMATION,
                 HttpStatus.SC_MULTIPLE_CHOICES,
                 HttpStatus.SC_MOVED_PERMANENTLY,
@@ -87,10 +87,10 @@ class ResponseCachingPolicy {
         this.sharedCache = sharedCache;
         this.neverCache1_0ResponsesWithQueryString = neverCache1_0ResponsesWithQueryString;
         if (allow303Caching) {
-            uncacheableStatuses = new HashSet<Integer>(
+            uncacheableStatuses = new HashSet<>(
                     Arrays.asList(HttpStatus.SC_PARTIAL_CONTENT));
         } else {
-            uncacheableStatuses = new HashSet<Integer>(Arrays.asList(
+            uncacheableStatuses = new HashSet<>(Arrays.asList(
                     HttpStatus.SC_PARTIAL_CONTENT, HttpStatus.SC_SEE_OTHER));
         }
     }