From 9003b83e68f2bbaaec8a5ba7e67c795f90fa4b0d Mon Sep 17 00:00:00 2001 From: Konloch Date: Thu, 1 Jul 2021 15:23:09 -0700 Subject: [PATCH] Code Cleanup --- .../bytecodeviewer/gui/components/FileChooser.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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())