aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm
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.pgm/src/org/eclipse/jgit/pgm
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.pgm/src/org/eclipse/jgit/pgm')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandCatalog.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandCatalog.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandCatalog.java
index 210e17277f..2a9f7acdb9 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandCatalog.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandCatalog.java
@@ -19,10 +19,10 @@ import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
+import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
-import java.util.Vector;
/**
* List of all commands known by jgit's command line tools.
@@ -104,7 +104,7 @@ public class CommandCatalog {
final String pfx = "META-INF/services/"; //$NON-NLS-1$
return ldr.getResources(pfx + TextBuiltin.class.getName());
} catch (IOException err) {
- return new Vector<URL>().elements();
+ return Collections.emptyEnumeration();
}
}