[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpcomponents-commits
Subject:    svn commit: r1698078 - /httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/ht
From:       ggregory () apache ! org
Date:       2015-08-27 4:59:38
Message-ID: 20150827045938.32AACAC009E () hades ! apache ! org
[Download RAW message or body]

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));
         }
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic