mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 22:50:55 +00:00
more cleanup
This commit is contained in:
@@ -122,9 +122,9 @@ public class AdvancedSettingsDialog extends AppDialog {
|
||||
|
||||
private static class SkinSelect {
|
||||
|
||||
private String name;
|
||||
private final String name;
|
||||
|
||||
private String className;
|
||||
private final String className;
|
||||
|
||||
public SkinSelect(String name, String className) {
|
||||
this.name = name;
|
||||
@@ -267,7 +267,7 @@ public class AdvancedSettingsDialog extends AppDialog {
|
||||
for (String name : keys) {
|
||||
Field field = fields.get(name);
|
||||
ConfigurationCategory cat = field.getAnnotation(ConfigurationCategory.class);
|
||||
String scat = (cat == null || cat.value().equals("")) ? "other" : cat.value();
|
||||
String scat = (cat == null || cat.value().isEmpty()) ? "other" : cat.value();
|
||||
if (!categorized.containsKey(scat)) {
|
||||
categorized.put(scat, new HashMap<>());
|
||||
}
|
||||
|
||||
@@ -22,9 +22,9 @@ package com.jpexs.decompiler.flash.gui;
|
||||
*/
|
||||
public class ComboBoxItem<E> {
|
||||
|
||||
private String title;
|
||||
private final String title;
|
||||
|
||||
private E value;
|
||||
private final E value;
|
||||
|
||||
public ComboBoxItem(String title, E value) {
|
||||
this.title = title;
|
||||
|
||||
@@ -60,7 +60,7 @@ public class MainFrameClassicMenu extends MainFrameMenu {
|
||||
}
|
||||
String parentPath = "";
|
||||
if (path.contains("/")) {
|
||||
parentPath = path.substring(0, path.lastIndexOf("/"));
|
||||
parentPath = path.substring(0, path.lastIndexOf('/'));
|
||||
}
|
||||
MenuElement parentMenu = menuElements.get(parentPath);
|
||||
if (parentMenu == null) {
|
||||
@@ -110,7 +110,7 @@ public class MainFrameClassicMenu extends MainFrameMenu {
|
||||
}
|
||||
String parentPath = "";
|
||||
if (path.contains("/")) {
|
||||
parentPath = path.substring(0, path.lastIndexOf("/"));
|
||||
parentPath = path.substring(0, path.lastIndexOf('/'));
|
||||
}
|
||||
MenuElement parentMenu = menuElements.get(parentPath);
|
||||
if (parentMenu == null) {
|
||||
@@ -136,7 +136,7 @@ public class MainFrameClassicMenu extends MainFrameMenu {
|
||||
path = mapping(path);
|
||||
String parentPath = "";
|
||||
if (path.contains("/")) {
|
||||
parentPath = path.substring(0, path.lastIndexOf("/"));
|
||||
parentPath = path.substring(0, path.lastIndexOf('/'));
|
||||
}
|
||||
MenuElement parentMenu = menuElements.get(parentPath);
|
||||
if (parentMenu == null) {
|
||||
@@ -287,7 +287,7 @@ public class MainFrameClassicMenu extends MainFrameMenu {
|
||||
if (me instanceof JMenu) {
|
||||
JMenu jm = (JMenu) me;
|
||||
if (jm.getMenuComponentCount() == 1) {
|
||||
String parentPath = path.contains("/") ? path.substring(0, path.lastIndexOf("/")) : "";
|
||||
String parentPath = path.contains("/") ? path.substring(0, path.lastIndexOf('/')) : "";
|
||||
MenuElement parMe = menuElements.get(parentPath);
|
||||
JMenuItem mi = (JMenuItem) jm.getMenuComponent(0);
|
||||
jm.remove(mi);
|
||||
|
||||
@@ -411,7 +411,7 @@ public class MainFrameRibbonMenu extends MainFrameMenu {
|
||||
|
||||
@Override
|
||||
public void addMenuItem(String path, String title, String icon, ActionListener action, int priority, ActionListener subLoader, boolean isLeaf) {
|
||||
String parentPath = path.contains("/") ? path.substring(0, path.lastIndexOf("/")) : "";
|
||||
String parentPath = path.contains("/") ? path.substring(0, path.lastIndexOf('/')) : "";
|
||||
if (!menuSubs.containsKey(parentPath)) {
|
||||
throw new IllegalArgumentException("No parent menu exists: " + parentPath);
|
||||
}
|
||||
|
||||
@@ -31,11 +31,11 @@ import javax.swing.JRadioButton;
|
||||
*/
|
||||
public class ReplaceTraceDialog extends AppDialog {
|
||||
|
||||
private JRadioButton debugAlertRadio;
|
||||
private final JRadioButton debugAlertRadio;
|
||||
|
||||
private JRadioButton debugConsoleRadio;
|
||||
private final JRadioButton debugConsoleRadio;
|
||||
|
||||
private JRadioButton debugSocketRadio;
|
||||
private final JRadioButton debugSocketRadio;
|
||||
|
||||
private String value = null;
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ import jsyntaxpane.DefaultSyntaxKit;
|
||||
*/
|
||||
public class SelectLanguageDialog extends AppDialog {
|
||||
|
||||
private JComboBox<Language> languageCombobox = new JComboBox<>();
|
||||
private final JComboBox<Language> languageCombobox = new JComboBox<>();
|
||||
|
||||
public String languageCode = null;
|
||||
|
||||
|
||||
@@ -33,11 +33,11 @@ import javax.swing.tree.TreePath;
|
||||
|
||||
public class ClassesListTreeModel extends AS3ClassTreeItem implements TreeModel {
|
||||
|
||||
private SWF swf;
|
||||
private final SWF swf;
|
||||
|
||||
private List<ScriptPack> list;
|
||||
|
||||
private AS3Package root;
|
||||
private final AS3Package root;
|
||||
|
||||
private final List<TreeModelListener> listeners = new ArrayList<>();
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.abc;
|
||||
|
||||
import com.jpexs.decompiler.flash.gui.editor.LineMarkedEditorPane;
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
import com.jpexs.decompiler.flash.abc.ABC;
|
||||
import com.jpexs.decompiler.flash.abc.CachedDecompilation;
|
||||
@@ -37,6 +36,7 @@ import com.jpexs.decompiler.flash.abc.types.traits.TraitMethodGetterSetter;
|
||||
import com.jpexs.decompiler.flash.abc.types.traits.TraitSlotConst;
|
||||
import com.jpexs.decompiler.flash.gui.AppStrings;
|
||||
import com.jpexs.decompiler.flash.gui.View;
|
||||
import com.jpexs.decompiler.flash.gui.editor.LineMarkedEditorPane;
|
||||
import com.jpexs.decompiler.flash.helpers.hilight.HighlightData;
|
||||
import com.jpexs.decompiler.flash.helpers.hilight.HighlightSpecialType;
|
||||
import com.jpexs.decompiler.flash.helpers.hilight.Highlighting;
|
||||
|
||||
@@ -67,8 +67,6 @@ public class PlayerControls extends JPanel implements MediaDisplayListener {
|
||||
|
||||
private final JButton loopButton;
|
||||
|
||||
private boolean paused = false;
|
||||
|
||||
private MediaDisplay display;
|
||||
|
||||
private JProgressBar progress;
|
||||
|
||||
Reference in New Issue
Block a user