Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xzel23 committed Dec 8, 2023
1 parent c4f0f75 commit ef6986e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@
requires com.dua3.utility.logging;
requires org.apache.logging.log4j;
requires static org.apache.logging.log4j.core;
requires com.dua3.utility;
}
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public static Optional<Path> showOpenDialog(Component parent, Path current, int
}

@SafeVarargs
private static Optional<Path> showFileDialog(Component parent, Path current, int selectionMode, BiFunction<JFileChooser, Component, Integer> showDialog,
private static Optional<Path> showFileDialog(Component parent, Path current, int selectionMode, BiFunction<JFileChooser, ? super Component, Integer> showDialog,
Pair<String, String[]>... types) {
File file;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,8 @@ public static FileSystemView forClass(Class<?> clazz) throws IOException {
*
* @param root the directory that will be root of this view
* @return FileSystemView
* @throws IOException if the directory denoted by {@code path} does not exist
* or an I/O error occurs
*/
public static FileSystemView forDirectory(Path root) throws IOException {
public static FileSystemView forDirectory(Path root) {
return new FileSystemView(root, () -> { /* NOOP */ }, root.toString());
}

Expand Down

0 comments on commit ef6986e

Please sign in to comment.