From 5ccbe20b118828f35fd64a887d77fb9b72ad1a6e Mon Sep 17 00:00:00 2001 From: Ceki Gulcu Date: Tue, 5 Dec 2023 10:02:43 +0100 Subject: [PATCH] remove unreachable code, see issues/371 Signed-off-by: Ceki Gulcu --- slf4j-api/src/main/java/org/slf4j/LoggerFactory.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java b/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java index a9f9851ca..4e1f0b0d6 100755 --- a/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java +++ b/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java @@ -377,11 +377,6 @@ private final static void versionSanityCheck() { + Arrays.asList(API_COMPATIBILITY_LIST).toString()); Reporter.warn("See " + VERSION_MISMATCH + " for further details."); } - } catch (java.lang.NoSuchFieldError nsfe) { - // given our large user base and SLF4J's commitment to backward - // compatibility, we cannot cry here. Only for implementations - // which willingly declare a REQUESTED_API_VERSION field do we - // emit compatibility warnings. } catch (Throwable e) { // we should never reach here Reporter.error("Unexpected problem occurred during version sanity check", e);