提交 62d6d71f 编写于 作者: K kohsuke

adding no-op instance that's convenient sometimes

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17358 71c3de6d-444a-0410-be80-ed276b4c234a
上级 afb51092
......@@ -45,4 +45,13 @@ public interface Saveable {
* if the persistence failed.
*/
void save() throws IOException;
/**
* {@link Saveable} that doesn't save anything.
* @since 1.301.
*/
public static final Saveable NOOP = new Saveable() {
public void save() throws IOException {
}
};
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册