From 533edd27594f4c1f3b067bf8c0998dce7b36d344 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 19 Nov 2023 11:54:21 -0500 Subject: [PATCH] Remove unused exceptions --- src/main/java/org/apache/commons/logging/LogSource.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/logging/LogSource.java b/src/main/java/org/apache/commons/logging/LogSource.java index ca3444a..85bfed2 100644 --- a/src/main/java/org/apache/commons/logging/LogSource.java +++ b/src/main/java/org/apache/commons/logging/LogSource.java @@ -220,14 +220,11 @@ public class LogSource { * * @param className class name. * @throws LinkageError if there is missing dependency. - * @throws NoSuchMethodException if a matching method is not found. * @throws SecurityException If a security manager, s, is present and the caller's class loader is not the same as or an ancestor of the class * loader for the current class and invocation of {@link SecurityManager#checkPackageAccess s.checkPackageAccess()} denies * access to the package of this class. - * @throws ClassNotFoundException if the class cannot be located */ - static public void setLogImplementation(final String className) - throws LinkageError, NoSuchMethodException, SecurityException, ClassNotFoundException { + static public void setLogImplementation(final String className) throws LinkageError, SecurityException { try { final Class logclass = Class.forName(className); final Class[] argtypes = new Class[1];