Make this a list to allow direct element access

This commit is contained in:
Daniel Beck committed 2020-05-03 22:40:10 +02:00
1 parent 2f60a69555
commit f0ef947bf4
3 files changed
+7 -9

No files matched your search

+2 -2
View File
@@ -1303,9 +1303,9 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
}
@Restricted(NoExternalUse.class)
public Set<UpdateSite.Deprecation> getDeprecations() {
public List<UpdateSite.Deprecation> getDeprecations() {
/* Would be much nicer to go through getInfoFromAllSites but that only works for currently published plugins */
Set<UpdateSite.Deprecation> deprecations = new HashSet<>();
List<UpdateSite.Deprecation> deprecations = new ArrayList<>();
for (UpdateSite site : Jenkins.get().getUpdateCenter().getSites()) {
for (Map.Entry<String, UpdateSite.Deprecation> entry : site.getData().getDeprecations().entrySet()) {
if (entry.getKey().equals(this.shortName)) {