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 313d312
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.channels.ClosedByInterruptException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
Expand Down Expand Up @@ -129,17 +128,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 313d312

Please sign in to comment.