Index: mojo/public/java/bindings/src/org/chromium/mojo/bindings/SideEffectFreeCloseable.java |
diff --git a/mojo/public/java/bindings/src/org/chromium/mojo/bindings/SideEffectFreeCloseable.java b/mojo/public/java/bindings/src/org/chromium/mojo/bindings/SideEffectFreeCloseable.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..118c991f7b08cd23f00fa34c09df1941b7e2ab93 |
--- /dev/null |
+++ b/mojo/public/java/bindings/src/org/chromium/mojo/bindings/SideEffectFreeCloseable.java |
@@ -0,0 +1,21 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package org.chromium.mojo.bindings; |
+ |
+import java.io.Closeable; |
+ |
+/** |
+ * An implementation of closeable that doesn't do anything. |
+ */ |
+public class SideEffectFreeCloseable implements Closeable { |
+ |
+ /** |
+ * @see java.io.Closeable#close() |
+ */ |
+ @Override |
+ public void close() { |
+ } |
+ |
+} |