World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#7284] [Improvement] remove unneeded throws (#7295)
Raveendra Pujari89d5dfd88888
diff --git a/clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/BaseGVFSOperations.java b/clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/BaseGVFSOperations.javaindex 634974de7f..7dbbe6f09e 100644--- a/clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/BaseGVFSOperations.java+++ b/clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/BaseGVFSOperations.java@@ -440,8 +440,7 @@ public abstract class BaseGVFSOperations implements Closeable {}private void createFilesetLocationIfNeed(- NameIdentifier filesetIdent, FileSystem fs, Path filesetPath)- throws FilesetPathNotFoundException {+ NameIdentifier filesetIdent, FileSystem fs, Path filesetPath) {NameIdentifier catalogIdent =NameIdentifier.of(filesetIdent.namespace().level(0), filesetIdent.namespace().level(1));// If the server-side filesystem ops are disabled, the fileset directory may not exist. In suchdiff --git a/core/src/main/java/org/apache/gravitino/utils/IsolatedClassLoader.java b/core/src/main/java/org/apache/gravitino/utils/IsolatedClassLoader.javaindex e338f1a023..28982b1cbe 100644--- a/core/src/main/java/org/apache/gravitino/utils/IsolatedClassLoader.java+++ b/core/src/main/java/org/apache/gravitino/utils/IsolatedClassLoader.java@@ -206,7 +206,7 @@ public class IsolatedClassLoader implements Closeable {}}- private synchronized URLClassLoader classLoader() throws Exception {+ private synchronized URLClassLoader classLoader() {if (classLoader != null) {return classLoader;}diff --git a/server-common/src/main/java/org/apache/gravitino/server/authentication/KerberosServerUtils.java b/server-common/src/main/java/org/apache/gravitino/server/authentication/KerberosServerUtils.javaindex 4db1a53bc2..f8a2144a0a 100644--- a/server-common/src/main/java/org/apache/gravitino/server/authentication/KerberosServerUtils.java+++ b/server-common/src/main/java/org/apache/gravitino/server/authentication/KerberosServerUtils.java@@ -16,7 +16,6 @@ package org.apache.gravitino.server.authentication;import java.io.File;import java.io.IOException;-import java.lang.reflect.InvocationTargetException;import java.net.InetAddress;import java.net.UnknownHostException;import java.nio.ByteBuffer;@@ -49,15 +48,8 @@ public class KerberosServerUtils {* Return the default realm for this JVM.** @return The default realm- * @throws IllegalArgumentException If the default realm does not exist.- * @throws ClassNotFoundException Not thrown. Exists for compatibility.- * @throws NoSuchMethodException Not thrown. Exists for compatibility.- * @throws IllegalAccessException Not thrown. Exists for compatibility.- * @throws InvocationTargetException Not thrown. Exists for compatibility.*/- public static String getDefaultRealm()- throws ClassNotFoundException, NoSuchMethodException, IllegalArgumentException,- IllegalAccessException, InvocationTargetException {+ public static String getDefaultRealm() {// Any name is okay.return new KerberosPrincipal("tmp", 1).getRealm();}diff --git a/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/CatalogRegister.java b/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/CatalogRegister.javaindex 8ccf8e8df9..8a3058f761 100644--- a/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/CatalogRegister.java+++ b/trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/CatalogRegister.java@@ -149,7 +149,7 @@ public class CatalogRegister {config.toCatalogConfig());}- private String generateDropCatalogCommand(String name) throws Exception {+ private String generateDropCatalogCommand(String name) {return String.format("DROP CATALOG %s", name);}