From a37cd7d50291b7bcc59bf043d123b55bbc48de92 Mon Sep 17 00:00:00 2001 From: jglick Date: Wed, 22 Apr 2009 15:07:03 +0000 Subject: [PATCH] Using new Saveable.NOOP. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17370 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/ListView.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/hudson/model/ListView.java b/core/src/main/java/hudson/model/ListView.java index 953493da8c..4257dfd2ad 100644 --- a/core/src/main/java/hudson/model/ListView.java +++ b/core/src/main/java/hudson/model/ListView.java @@ -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>(NO_SAVABLE); + columns = new DescribableList>(Saveable.NOOP); try { columns.replaceBy(r); } catch (IOException ex) { @@ -256,7 +252,7 @@ public class ListView extends View { } if (columns == null) { - columns = new DescribableList>(NO_SAVABLE); + columns = new DescribableList>(Saveable.NOOP); } columns.rebuildHetero(req, req.getSubmittedForm(), Hudson.getInstance().getDescriptorList(ListViewColumn.class), "columns"); } -- GitLab