提交 eb0ca615 编写于 作者: K kohsuke

simplified by introducing a default

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15241 71c3de6d-444a-0410-be80-ed276b4c234a
上级 a5bca0e5
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册