diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/DecompilerSelectionPane.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/DecompilerSelectionPane.java index afa1bb6f..ffeeaec6 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/DecompilerSelectionPane.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/DecompilerSelectionPane.java @@ -164,9 +164,7 @@ public class DecompilerSelectionPane public Decompiler getSelectedDecompiler() { - javax.swing.ButtonModel selection = group.getSelection(); - String actionCommand = selection.getActionCommand(); - return Decompiler.valueOf(actionCommand); + return Decompiler.valueOf(group.getSelection().getActionCommand()); } public void setSelectedDecompiler(Decompiler decompiler)