mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
simplified by introducing a default
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15241 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
a5bca0e541
commit
eb0ca615ea
3 files changed
+4
-8
No files matched your search
@@ -81,6 +81,10 @@ public abstract class AdministrativeMonitor implements ExtensionPoint {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
protected AdministrativeMonitor() {
|
||||
this.id = this.getClass().getName();
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark this monitor as disabled, to prevent this from showing up in the UI.
|
||||
*/
|
||||
|
||||
@@ -327,10 +327,6 @@ public class UpdateCenter extends AbstractModelObject {
|
||||
* {@link AdministrativeMonitor} that checks if there's Hudson update.
|
||||
*/
|
||||
public final class CoreUpdateMonitor extends AdministrativeMonitor {
|
||||
public CoreUpdateMonitor() {
|
||||
super(CoreUpdateMonitor.class.getName());
|
||||
}
|
||||
|
||||
public boolean isActivated() {
|
||||
Data data = getData();
|
||||
return data!=null && data.hasCoreUpdates();
|
||||
|
||||
@@ -289,10 +289,6 @@ public class SCMTrigger extends Trigger<SCMedItem> {
|
||||
public static final class AdministrativeMonitorImpl extends AdministrativeMonitor {
|
||||
private boolean on;
|
||||
|
||||
AdministrativeMonitorImpl() {
|
||||
super(SCMTrigger.class.getName());
|
||||
}
|
||||
|
||||
public boolean isActivated() {
|
||||
return on;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user