提交 a37cd7d5 编写于 作者: J jglick

Using new Saveable.NOOP.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17370 71c3de6d-444a-0410-be80-ed276b4c234a
上级 5b20c7f1
......@@ -64,10 +64,6 @@ import java.util.regex.PatternSyntaxException;
*/
public class ListView extends View {
private static final Saveable NO_SAVABLE = new Saveable() {
public void save() throws IOException {}
};
/**
* List of job names. This is what gets serialized.
*/
......@@ -144,7 +140,7 @@ public class ListView extends View {
filter.remove();
}
}
columns = new DescribableList<ListViewColumn, Descriptor<ListViewColumn>>(NO_SAVABLE);
columns = new DescribableList<ListViewColumn, Descriptor<ListViewColumn>>(Saveable.NOOP);
try {
columns.replaceBy(r);
} catch (IOException ex) {
......@@ -256,7 +252,7 @@ public class ListView extends View {
}
if (columns == null) {
columns = new DescribableList<ListViewColumn,Descriptor<ListViewColumn>>(NO_SAVABLE);
columns = new DescribableList<ListViewColumn,Descriptor<ListViewColumn>>(Saveable.NOOP);
}
columns.rebuildHetero(req, req.getSubmittedForm(), Hudson.getInstance().getDescriptorList(ListViewColumn.class), "columns");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册