Skip to content

Commit

Permalink
Remove workaround for Java < 7
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Mar 15, 2023
1 parent b5489c9 commit 8a623fe
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,6 @@ public final synchronized MapPrinter create(@Nullable final String app) throws N
printer.setConfiguration(configFile, bytes);

this.printers.put(finalApp, printer);
} catch (ClosedByInterruptException e) {
// because of a bug in the JDK, the interrupted status might not be set
// when throwing a ClosedByInterruptException. so, we do it manually.
// see also http://bugs.java.com/view_bug.do?bug_id=7043425
Thread.currentThread().interrupt();
LOGGER.error(
"Error occurred while reading configuration file '{}', '{}'", configFile, e.getMessage()
);
throw new RuntimeException(String.format(
"Error occurred while reading configuration file '%s': ", configFile),
e);
} catch (Throwable e) {
LOGGER.error(
"Error occurred while reading configuration file '{}', '{}'", configFile, e.getMessage()
Expand Down

0 comments on commit 8a623fe

Please sign in to comment.