mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
Using new Saveable.NOOP.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17370 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
5b20c7f127
commit
a37cd7d502
1 file changed
+2
-6
@@ -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");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user