Skip to content

Commit

Permalink
Use type safe empty set
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed Jul 28, 2020
1 parent 1b69fc2 commit 6a71572
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.<GitObject>emptySet();
}
Pattern pattern = Pattern.compile("(\\p{XDigit}{40})\\s+refs/tags/([^^]+)(\\^\\{\\})?");
Map<String, ObjectId> tagMap = new HashMap<>();
Expand Down

0 comments on commit 6a71572

Please sign in to comment.