From f5fe9e5bb66e03d767883ceeb66f1788bbdd752c Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Mon, 5 Sep 2016 09:44:34 +0200 Subject: 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 --- .../main/java/io/fd/honeycomb/translate/write/WriterFactory.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'infra/translate-api') 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 - } } -- cgit 1.2.3-korg