summaryrefslogtreecommitdiffstats
path: root/infra/translate-api/src/main
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-09-05 09:44:34 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-09-05 09:44:36 +0200
commit2645ef7b9214bff46fcfc8933fed9d571bc6abe5 (patch)
treea16ca3bdcd0ea38311141467f16faf32700bf030 /infra/translate-api/src/main
parente562a8f1e0796a9699fc93e5b18de2c386b730f8 (diff)
Fix Writer Factory: remove AutoClosable from list
of implemented interfaces. WriterFactories do not need to be AutoClosable. Change-Id: I1947489b7eac2ccf4c34b3212c93ed76922a595f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/translate-api/src/main')
-rw-r--r--infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/WriterFactory.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/WriterFactory.java b/infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/WriterFactory.java
index 70328c7f5..cec88336f 100644
--- a/infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/WriterFactory.java
+++ b/infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/WriterFactory.java
@@ -24,15 +24,11 @@ import javax.annotation.Nonnull;
* Factory producing writers for {@link ModifiableWriterRegistryBuilder}.
*/
@Beta
-public interface WriterFactory extends AutoCloseable {
+public interface WriterFactory {
/**
* Initialize 1 or more writers and add them to provided registry.
*/
void init(@Nonnull ModifiableWriterRegistryBuilder registry);
- @Override
- default void close() {
- // NOOP TODO allow unregister
- }
}