Merge pull request #4262 from StefanSpieker/replace_getActiveInstance

Replaced deprecated getActiveInstance() with get()
This commit is contained in:
Oleg Nenashev authored and GitHub committed 2019-11-22 10:25:21 +01:00
commit eedf2a4e2a
39 files changed
+57 -60

No files matched your search

+1 -1
View File
@@ -1251,7 +1251,7 @@ public class PluginWrapper implements Comparable<PluginWrapper>, ModelObject {
@RequirePOST
public HttpResponse doDoUninstall() throws IOException {
Jenkins jenkins = Jenkins.getActiveInstance();
Jenkins jenkins = Jenkins.get();
jenkins.checkPermission(Jenkins.ADMINISTER);
archive.delete();