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.ui | |
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.ui')
-rw-r--r-- | org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java index 47acc11e7d..901452617d 100644 --- a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java +++ b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java @@ -11,16 +11,17 @@ package org.eclipse.jgit.awtui; import java.awt.Color; -import java.util.LinkedList; +import java.util.ArrayDeque; +import java.util.Deque; import org.eclipse.jgit.revplot.PlotCommitList; import org.eclipse.jgit.revplot.PlotLane; class SwingCommitList extends PlotCommitList<SwingCommitList.SwingLane> { - final LinkedList<Color> colors; + final Deque<Color> colors; SwingCommitList() { - colors = new LinkedList<>(); + colors = new ArrayDeque<>(); repackColors(); } |