gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1873620 - in /gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy: HostResolver.java Registry.java resources/GumpArtifact.java
Date Wed, 05 Feb 2020 10:13:45 GMT
Author: markt
Date: Wed Feb  5 10:13:45 2020
New Revision: 1873620

URL: http://svn.apache.org/viewvc?rev=1873620&view=rev
Log:
Fix generics

Modified:
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/HostResolver.java
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Registry.java
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/resources/GumpArtifact.java

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/HostResolver.java
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/HostResolver.java?rev=1873620&r1=1873619&r2=1873620&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/HostResolver.java (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/HostResolver.java Wed Feb  5
10:13:45 2020
@@ -45,7 +45,7 @@ public class HostResolver {
         "https://repo1.maven.org";
 
     private static final Map<String, String> PREFIX_2_HOST =
-        new LinkedHashMap<String, String>();
+        new LinkedHashMap<>();
 
     static void initialize(Properties props) {
         for (Object key : Collections.list(props.propertyNames())) {

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Registry.java
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Registry.java?rev=1873620&r1=1873619&r2=1873620&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Registry.java (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Registry.java Wed Feb  5 10:13:45
2020
@@ -28,7 +28,7 @@ public class Registry {
 
     // {groupId, artifactId, type} -> local file name
     private static final Map<Key, String> knownArtifacts
-        = new HashMap<Key, String>();
+        = new HashMap<>();
 
     /**
      * Adds an artifact mapping {group, artifact, type} -&gt; local file name
@@ -68,7 +68,7 @@ public class Registry {
 
         @Override
         public int hashCode() {
-            return type.hashCode() + 
+            return type.hashCode() +
                 13 * (groupId.hashCode() + 7 * artifactId.hashCode());
         }
     }

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/resources/GumpArtifact.java
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/resources/GumpArtifact.java?rev=1873620&r1=1873619&r2=1873620&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/resources/GumpArtifact.java (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/resources/GumpArtifact.java Wed
Feb  5 10:13:45 2020
@@ -39,7 +39,7 @@ public abstract class GumpArtifact exten
 
     private final String fileName;
     private final String artifactType;
-    private static final ArrayList<LogEntry> served = new ArrayList<LogEntry>();
+    private static final ArrayList<LogEntry> served = new ArrayList<>();
 
     public GumpArtifact(Context ctx, Request request, Response response,
                         Variant type, String artifactType) {



Mime
View raw message