From 8b8fc26853f2a108367673f469074988c461d1b8 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Mon, 26 Apr 2021 13:41:09 +0200 Subject: [PATCH] Remove redundant suppression --- .../src/main/java/io/trino/plugin/hive/HiveMetadataFactory.java | 1 - .../src/main/java/io/trino/plugin/hive/HiveModule.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveMetadataFactory.java b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveMetadataFactory.java index 956e28171980f..4c572018d33ba 100644 --- a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveMetadataFactory.java +++ b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveMetadataFactory.java @@ -63,7 +63,6 @@ public class HiveMetadataFactory private final ScheduledExecutorService heartbeatService; @Inject - @SuppressWarnings("deprecation") public HiveMetadataFactory( CatalogName catalogName, HiveConfig hiveConfig, diff --git a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveModule.java b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveModule.java index 4e259a2f5fe8d..43c9863a1bd89 100644 --- a/plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveModule.java +++ b/plugin/trino-hive/src/main/java/io/trino/plugin/hive/HiveModule.java @@ -91,7 +91,7 @@ public void configure(Binder binder) .setDefault().to(NoneHiveRedirectionsProvider.class).in(Scopes.SINGLETON); newOptionalBinder(binder, HiveMaterializedViewMetadata.class) .setDefault().to(NoneHiveMaterializedViewMetadata.class).in(Scopes.SINGLETON); - newOptionalBinder(binder,TransactionalMetadataFactory.class) + newOptionalBinder(binder, TransactionalMetadataFactory.class) .setDefault().to(HiveMetadataFactory.class).in(Scopes.SINGLETON); binder.bind(HiveTransactionManager.class).in(Scopes.SINGLETON); binder.bind(ConnectorSplitManager.class).to(HiveSplitManager.class).in(Scopes.SINGLETON);