mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-27 03:25:21 +00:00
Merge pull request #4262 from StefanSpieker/replace_getActiveInstance
Replaced deprecated getActiveInstance() with get()
This commit is contained in:
39 files changed
+57
-60
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user