Skip to content

Commit

Permalink
#102: fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 9, 2017
1 parent 80b2f14 commit 8359767
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/org/cactoos/func/IoCheckedFunc.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,18 @@ public IoCheckedFunc(final Func<X, Y> fnc) {
}

@Override
@SuppressWarnings("PMD.AvoidCatchingGenericException")
@SuppressWarnings
(
{
"PMD.AvoidCatchingGenericException",
"PMD.AvoidRethrowingException"
}
)
public Y apply(final X input) throws IOException {
try {
return this.func.apply(input);
} catch (final IOException ex) {
throw ex;
} catch (final InterruptedException ex) {
Thread.currentThread().interrupt();
throw new IOException(ex);
Expand Down

0 comments on commit 8359767

Please sign in to comment.