Skip to content

Commit

Permalink
remove unreachable code, see issues/371
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <[email protected]>
  • Loading branch information
ceki committed Dec 5, 2023
1 parent 02b36a2 commit 5ccbe20
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions slf4j-api/src/main/java/org/slf4j/LoggerFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5ccbe20

Please sign in to comment.