Descriptor can infer the corresponding Describable most of the time, because it's the outer class.

This is more DRY.

This should also work for anonymous classes, so those changes to follow.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14747 71c3de6d-444a-0410-be80-ed276b4c234a

Originally-Committed-As: ac848d085f13b3825fa0d1974fb539fb2ba5e6dd
This commit is contained in:
kohsuke 2009-01-23 16:09:15 +00:00
parent 78d5ce192c
commit ddb9373dad

View file

@ -236,10 +236,6 @@ public class LDAPSecurityRealm extends SecurityRealm {
public static final DescriptorImpl DESCRIPTOR = new DescriptorImpl();
public static final class DescriptorImpl extends Descriptor<SecurityRealm> {
private DescriptorImpl() {
super(LDAPSecurityRealm.class);
}
public String getDisplayName() {
return Messages.LDAPSecurityRealm_DisplayName();
}