replaced deprecated getActiveInstance() with get()

This commit is contained in:
Stefan Spieker committed 2019-10-03 21:13:14 +02:00
1 parent c9e66d0be9
commit 76057897be
41 files changed
+57 -59

No files matched your search

+1 -1
View File
@@ -1236,7 +1236,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();