From 6a715721aa59c145f0bdd84f8e39b83807fb0e30 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Tue, 28 Jul 2020 16:23:35 -0600 Subject: [PATCH] Use type safe empty set --- .../java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java b/src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java index 128f1bd38c..bb65de9429 100644 --- a/src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java +++ b/src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java @@ -3570,7 +3570,7 @@ Output shows SHA1 and tag with (optional) marker for annotated tags */ String[] output = result.split("[\\n\\r]+"); if (output.length == 0 || (output.length == 1 && output[0].isEmpty())) { - return Collections.EMPTY_SET; + return Collections.emptySet(); } Pattern pattern = Pattern.compile("(\\p{XDigit}{40})\\s+refs/tags/([^^]+)(\\^\\{\\})?"); Map tagMap = new HashMap<>();