hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1698075 - in /httpcomponents/contrib/httpcore/trunk/src/main/java/org/apache/http/contrib/sip: BasicCompactHeaderMapper.java EnglishSipReasonPhraseCatalog.java
Date Thu, 27 Aug 2015 04:57:34 GMT
Author: ggregory
Date: Thu Aug 27 04:57:34 2015
New Revision: 1698075

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

Modified:
    httpcomponents/contrib/httpcore/trunk/src/main/java/org/apache/http/contrib/sip/BasicCompactHeaderMapper.java
    httpcomponents/contrib/httpcore/trunk/src/main/java/org/apache/http/contrib/sip/EnglishSipReasonPhraseCatalog.java

Modified: httpcomponents/contrib/httpcore/trunk/src/main/java/org/apache/http/contrib/sip/BasicCompactHeaderMapper.java
URL: http://svn.apache.org/viewvc/httpcomponents/contrib/httpcore/trunk/src/main/java/org/apache/http/contrib/sip/BasicCompactHeaderMapper.java?rev=1698075&r1=1698074&r2=1698075&view=diff
==============================================================================
--- httpcomponents/contrib/httpcore/trunk/src/main/java/org/apache/http/contrib/sip/BasicCompactHeaderMapper.java
(original)
+++ httpcomponents/contrib/httpcore/trunk/src/main/java/org/apache/http/contrib/sip/BasicCompactHeaderMapper.java
Thu Aug 27 04:57:34 2015
@@ -87,10 +87,10 @@ public class BasicCompactHeaderMapper im
      */
     protected void createMaps() {
         if (mapCompactToFull == null) {
-            mapCompactToFull = new HashMap<String,String>();
+            mapCompactToFull = new HashMap<>();
         }
         if (mapFullToCompact == null) {
-            mapFullToCompact = new HashMap<String,String>();
+            mapFullToCompact = new HashMap<>();
         }
     }
 

Modified: httpcomponents/contrib/httpcore/trunk/src/main/java/org/apache/http/contrib/sip/EnglishSipReasonPhraseCatalog.java
URL: http://svn.apache.org/viewvc/httpcomponents/contrib/httpcore/trunk/src/main/java/org/apache/http/contrib/sip/EnglishSipReasonPhraseCatalog.java?rev=1698075&r1=1698074&r2=1698075&view=diff
==============================================================================
--- httpcomponents/contrib/httpcore/trunk/src/main/java/org/apache/http/contrib/sip/EnglishSipReasonPhraseCatalog.java
(original)
+++ httpcomponents/contrib/httpcore/trunk/src/main/java/org/apache/http/contrib/sip/EnglishSipReasonPhraseCatalog.java
Thu Aug 27 04:57:34 2015
@@ -93,7 +93,7 @@ public class EnglishSipReasonPhraseCatal
      */
     // see below for static initialization
     private static final
-        Map<Integer,String> REASON_PHRASES = new HashMap<Integer,String>();
+        Map<Integer,String> REASON_PHRASES = new HashMap<>();
 
 
 



Mime
View raw message