Skip to content

Commit

Permalink
Avoid test error on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Aug 6, 2023
1 parent fb53a17 commit 5f95593
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ public void accept(File file) {
} catch (IllegalAccessException exception) {
throw new IllegalStateException("Cannot access file system permissions", exception);
} catch (InvocationTargetException exception) {
throw new IllegalStateException("Cannot invoke file system permissions method", exception.getTargetException());
if (!(exception.getTargetException() instanceof UnsupportedOperationException)) {
throw new IllegalStateException("Cannot invoke file system permissions method", exception.getTargetException());
}
}
}
}
Expand Down

0 comments on commit 5f95593

Please sign in to comment.