diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/FileChooser.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/FileChooser.java index 42fceafe..a5fbf1e5 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/FileChooser.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/FileChooser.java @@ -14,19 +14,9 @@ import java.util.HashSet; */ public class FileChooser extends JFileChooser { - private final File filePath; - private final String title; - private final String description; - private final String[] extensions; - private final HashSet extensionSet = new HashSet<>(); - public FileChooser(File filePath, String title, String description, String... extensions) { - this.filePath = filePath; - this.title = title; - this.description = description; - this.extensions = extensions; - this.extensionSet.addAll(Arrays.asList(extensions)); + HashSet extensionSet = new HashSet<>(Arrays.asList(extensions)); try { if (filePath.exists())