mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 01:56:03 +00:00
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:
1 parent
38ca0978ba
commit
121bb7c2cb
1 file changed
+8
-3
@@ -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();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user