diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2024-04-28 22:41:46 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-04-29 15:05:23 +0200 |
commit | 964498e0a5059fc62417f4d09074b56b42b148be (patch) | |
tree | b5e7be9f32c3dd5700f95e79de7ac30f5709e4c8 /org.eclipse.jgit.test/tst/org/eclipse/jgit/util/http/HttpCookiesMatcher.java | |
parent | d8cb554f25925f3ea2d66815fdaa59efa1867ae3 (diff) | |
download | jgit-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.test/tst/org/eclipse/jgit/util/http/HttpCookiesMatcher.java')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/util/http/HttpCookiesMatcher.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/http/HttpCookiesMatcher.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/http/HttpCookiesMatcher.java index 5a2bd976c7..18faab5c9f 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/http/HttpCookiesMatcher.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/http/HttpCookiesMatcher.java @@ -10,7 +10,7 @@ package org.eclipse.jgit.util.http; import java.net.HttpCookie; -import java.util.LinkedList; +import java.util.ArrayList; import java.util.List; import org.hamcrest.Description; @@ -26,7 +26,7 @@ public final class HttpCookiesMatcher { public static Matcher<Iterable<? extends HttpCookie>> containsInOrder( Iterable<HttpCookie> expectedCookies, int allowedMaxAgeDelta) { - final List<Matcher<? super HttpCookie>> cookieMatchers = new LinkedList<>(); + final List<Matcher<? super HttpCookie>> cookieMatchers = new ArrayList<>(); for (HttpCookie cookie : expectedCookies) { cookieMatchers .add(new HttpCookieMatcher(cookie, allowedMaxAgeDelta)); |