aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.apache
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-04-28 22:41:46 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2024-04-29 15:05:23 +0200
commit964498e0a5059fc62417f4d09074b56b42b148be (patch)
treeb5e7be9f32c3dd5700f95e79de7ac30f5709e4c8 /org.eclipse.jgit.http.apache
parentd8cb554f25925f3ea2d66815fdaa59efa1867ae3 (diff)
downloadjgit-964498e0a5059fc62417f4d09074b56b42b148be.tar.gz
jgit-964498e0a5059fc62417f4d09074b56b42b148be.zip
[errorprone] Fix error pattern JdkObsolete
See https://errorprone.info/bugpattern/JdkObsolete Change-Id: Id105e2695eb64523bd217f507bf95f909bc6b348
Diffstat (limited to 'org.eclipse.jgit.http.apache')
-rw-r--r--org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java b/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java
index 6d806dee37..0cb6fe10d0 100644
--- a/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java
+++ b/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java
@@ -25,10 +25,10 @@ import java.net.URL;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
+import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
-import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@@ -300,7 +300,7 @@ public class HttpClientConnection implements HttpConnection {
for (Header hdr : resp.getAllHeaders()) {
List<String> list = ret.get(hdr.getName());
if (list == null) {
- list = new LinkedList<>();
+ list = new ArrayList<>();
ret.put(hdr.getName(), list);
}
for (HeaderElement hdrElem : hdr.getElements()) {