diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2024-05-02 15:16:45 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-05-02 15:23:55 +0200 |
commit | acbb197355bc1ce3d2be747e3af62a01ca6821e5 (patch) | |
tree | d90b6be67723c00db1e85251eb91410bb10c8e62 /org.eclipse.jgit.lfs | |
parent | c8844571b3a483e3cc5f77d18b4e972ad5fe2c5e (diff) | |
parent | 98f329e93791a49068adc0bc2f5c81234fe2d943 (diff) | |
download | jgit-acbb197355bc1ce3d2be747e3af62a01ca6821e5.tar.gz jgit-acbb197355bc1ce3d2be747e3af62a01ca6821e5.zip |
Merge branch 'master' into next
* master:
Bazel: Add support for JDK 21
Bazel: Replace deprecated --experimental_strict_action_env option
Fix warning about using raw type
[errorprone] Fix pattern ModifiedButNotUsed
[errorprone] Fix pattern CatchAndPrintStackTrace
[errorprone] Fix pattern FutureReturnValueIgnored
[errorprone] Fix pattern BadImport
[errorprone] Fix pattern UseCorrectAssertInTests
[errorprone] Fix pattern ProtectedMembersInFinalClass
[errorprone] Fix pattern CatchFail
[errorprone] Fix pattern see UnusedVariable
[errorprone] Fix pattern LongLiteralLowerCaseSuffix
[errorprone] Fix error pattern JdkObsolete
[errorprone] Fix UnnecessaryParentheses errors
Bazel: Update RBE docker image to Ubuntu 22.04 and JDK 17
Bump Bazel version to 7.1.1
PackIndex: Make #getOffset protected to allow out-of-package subclasses
Change-Id: I4ecde5e6a3cb9f122990893fa97f6d2a9978bcc4
Diffstat (limited to 'org.eclipse.jgit.lfs')
-rw-r--r-- | org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/internal/LfsConnectionFactory.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/internal/LfsConnectionFactory.java b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/internal/LfsConnectionFactory.java index d7d8d63775..1a4e85ded6 100644 --- a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/internal/LfsConnectionFactory.java +++ b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/internal/LfsConnectionFactory.java @@ -9,11 +9,11 @@ */ package org.eclipse.jgit.lfs.internal; +import static org.eclipse.jgit.lib.Constants.DEFAULT_REMOTE_NAME; import static org.eclipse.jgit.util.HttpSupport.ENCODING_GZIP; import static org.eclipse.jgit.util.HttpSupport.HDR_ACCEPT; import static org.eclipse.jgit.util.HttpSupport.HDR_ACCEPT_ENCODING; import static org.eclipse.jgit.util.HttpSupport.HDR_CONTENT_TYPE; -import static org.eclipse.jgit.lib.Constants.DEFAULT_REMOTE_NAME; import java.io.IOException; import java.net.ProxySelector; @@ -22,7 +22,7 @@ import java.net.URL; import java.time.LocalDateTime; import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; -import java.util.LinkedList; +import java.util.ArrayList; import java.util.Map; import java.util.TreeMap; @@ -266,7 +266,7 @@ public class LfsConnectionFactory { Protocol.Request req = new Protocol.Request(); req.operation = operation; if (resources != null) { - req.objects = new LinkedList<>(); + req.objects = new ArrayList<>(); for (LfsPointer res : resources) { Protocol.ObjectSpec o = new Protocol.ObjectSpec(); o.oid = res.getOid().getName(); |