mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-28 12:05:19 +00:00
Make this a list to allow direct element access
This commit is contained in:
1 parent
2f60a69555
commit
f0ef947bf4
3 files changed
+7
-9
No files matched your search
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user