From 121bb7c2cb5f060ce136d2a67c51ec5d75e60487 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Sun, 28 Oct 2007 04:55:36 +0000 Subject: [PATCH] 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 --- core/src/main/java/hudson/scm/NullSCM.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/hudson/scm/NullSCM.java b/core/src/main/java/hudson/scm/NullSCM.java index 1c64248173..ad1d1ea6c7 100644 --- a/core/src/main/java/hudson/scm/NullSCM.java +++ b/core/src/main/java/hudson/scm/NullSCM.java @@ -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.class,null) { + static final SCMDescriptor DESCRIPTOR = new DescriptorImpl(); + + public static class DescriptorImpl extends SCMDescriptor { + 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(); } - }; + } }