this needs to be public for the getDisplayName() method to be accessible.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5512 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-10-28 04:55:36 +00:00
1 parent 38ca0978ba
commit 121bb7c2cb
1 file changed
+8 -3
+8 -3
View File
@@ -10,7 +10,6 @@ import org.kohsuke.stapler.StaplerRequest;
import java.io.File;
import java.io.IOException;
import java.util.Map;
/**
* No {@link SCM}.
@@ -39,7 +38,13 @@ public class NullSCM extends SCM {
return new NullChangeLogParser();
}
static final SCMDescriptor DESCRIPTOR = new SCMDescriptor<NullSCM>(NullSCM.class,null) {
static final SCMDescriptor DESCRIPTOR = new DescriptorImpl();
public static class DescriptorImpl extends SCMDescriptor<NullSCM> {
public DescriptorImpl() {
super(NullSCM.class, null);
}
public String getDisplayName() {
return "None";
}
@@ -47,5 +52,5 @@ public class NullSCM extends SCM {
public SCM newInstance(StaplerRequest req) {
return new NullSCM();
}
};
}
}