leaving the view name null is important for clean persistence

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13968 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-12-30 02:33:01 +00:00
1 parent 10ac38c370
commit 2b4892d835
1 file changed
+5 -1
+5 -1
View File
@@ -331,7 +331,7 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node,
private transient final LogRecorderManager log = new LogRecorderManager();
public Hudson(File root, ServletContext context) throws IOException {
super(Messages.Hudson_ViewName());
super(null);
this.root = root;
this.servletContext = context;
if(theInstance!=null)
@@ -478,6 +478,10 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node,
throw new UnsupportedOperationException();
}
@Override
public String getViewName() {
return Messages.Hudson_ViewName();
}
/**
* Gets the SCM descriptor by name. Primarily used for making them web-visible.