From 18cb73385f2b0fc16fe0d28aaa8d83dfef197b80 Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Sat, 21 Jun 2025 18:37:54 +0200 Subject: [PATCH] remove Unnecessary semicolons --- .../rpg/atcontentstudio/ATContentStudio.java | 1 - .../model/gamedata/ActorCondition.java | 1 - .../atcontentstudio/model/gamedata/Item.java | 1 - .../atcontentstudio/model/gamedata/NPC.java | 2 -- .../atcontentstudio/model/maps/TMXMapSet.java | 1 - .../model/sprites/Spritesheet.java | 2 -- .../gpl/rpg/atcontentstudio/ui/Editor.java | 7 ---- .../atcontentstudio/ui/ScrollablePanel.java | 4 +-- .../rpg/atcontentstudio/ui/WorkerDialog.java | 1 - .../atcontentstudio/ui/WorkspaceActions.java | 36 ------------------- .../ui/gamedataeditors/ItemEditor.java | 1 - .../dialoguetree/DialogueGraphView.java | 2 -- .../ui/map/WorldMapEditor.java | 1 - .../ui/sprites/SpritesheetEditor.java | 1 - .../ui/tools/writermode/WriterModeEditor.java | 2 -- 15 files changed, 2 insertions(+), 61 deletions(-) diff --git a/src/com/gpl/rpg/atcontentstudio/ATContentStudio.java b/src/com/gpl/rpg/atcontentstudio/ATContentStudio.java index 926d52d..30c787d 100644 --- a/src/com/gpl/rpg/atcontentstudio/ATContentStudio.java +++ b/src/com/gpl/rpg/atcontentstudio/ATContentStudio.java @@ -113,7 +113,6 @@ public class ATContentStudio { frame.setDefaultCloseOperation(StudioFrame.DO_NOTHING_ON_CLOSE); } - ; }); for (File f : ConfigCache.getKnownWorkspaces()) { if (workspaceRoot.equals(f)) { diff --git a/src/com/gpl/rpg/atcontentstudio/model/gamedata/ActorCondition.java b/src/com/gpl/rpg/atcontentstudio/model/gamedata/ActorCondition.java index e43088f..882c006 100644 --- a/src/com/gpl/rpg/atcontentstudio/model/gamedata/ActorCondition.java +++ b/src/com/gpl/rpg/atcontentstudio/model/gamedata/ActorCondition.java @@ -22,7 +22,6 @@ public class ActorCondition extends JSONElement { public static final Integer MAGNITUDE_CLEAR = -99; public static final Integer DURATION_FOREVER = 999; - ; public static final Integer DURATION_NONE = 0; // Available from init state diff --git a/src/com/gpl/rpg/atcontentstudio/model/gamedata/Item.java b/src/com/gpl/rpg/atcontentstudio/model/gamedata/Item.java index ba03e82..c7cfa2c 100644 --- a/src/com/gpl/rpg/atcontentstudio/model/gamedata/Item.java +++ b/src/com/gpl/rpg/atcontentstudio/model/gamedata/Item.java @@ -614,7 +614,6 @@ public class Item extends JSONElement { price += kill_effect == null ? 0 : calculateUseCost(); } else if (category.action_type == ItemCategory.ActionType.equip) { price += equip_effect == null ? 0 : calculateEquipCost(isWeapon()); - ; price += hit_effect == null ? 0 : calculateHitCost(); price += kill_effect == null ? 0 : calculateKillCost(); } diff --git a/src/com/gpl/rpg/atcontentstudio/model/gamedata/NPC.java b/src/com/gpl/rpg/atcontentstudio/model/gamedata/NPC.java index 37c0c0e..743245a 100644 --- a/src/com/gpl/rpg/atcontentstudio/model/gamedata/NPC.java +++ b/src/com/gpl/rpg/atcontentstudio/model/gamedata/NPC.java @@ -574,7 +574,5 @@ public class NPC extends JSONElement { return new Double(Math.ceil(experience)).intValue(); } - ; - } diff --git a/src/com/gpl/rpg/atcontentstudio/model/maps/TMXMapSet.java b/src/com/gpl/rpg/atcontentstudio/model/maps/TMXMapSet.java index a71e298..39c9c3d 100644 --- a/src/com/gpl/rpg/atcontentstudio/model/maps/TMXMapSet.java +++ b/src/com/gpl/rpg/atcontentstudio/model/maps/TMXMapSet.java @@ -119,7 +119,6 @@ public class TMXMapSet implements ProjectTreeNode { } } - ; }; watcher.start(); } diff --git a/src/com/gpl/rpg/atcontentstudio/model/sprites/Spritesheet.java b/src/com/gpl/rpg/atcontentstudio/model/sprites/Spritesheet.java index dc1e72e..389434a 100644 --- a/src/com/gpl/rpg/atcontentstudio/model/sprites/Spritesheet.java +++ b/src/com/gpl/rpg/atcontentstudio/model/sprites/Spritesheet.java @@ -37,8 +37,6 @@ public class Spritesheet extends GameDataElement { actorcondition } - ; - //Lazy initialization. public BufferedImage spritesheet = null; public Map cache_full_size = new LinkedHashMap(); diff --git a/src/com/gpl/rpg/atcontentstudio/ui/Editor.java b/src/com/gpl/rpg/atcontentstudio/ui/Editor.java index b07c7c9..bc83e62 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/Editor.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/Editor.java @@ -126,7 +126,6 @@ public abstract class Editor extends JPanel implements ProjectElementListener { translationStatus.setText(unit.translatedText); } - ; }.start(); pane.add(labelPane, JideBoxLayout.FIX); tfComponent.getDocument().addDocumentListener(new DocumentListener() { @@ -333,18 +332,15 @@ public abstract class Editor extends JPanel implements ProjectElementListener { defaultChance = Integer.parseInt(defaultValue.substring(0, c)); } catch (NumberFormatException nfe) { } - ; try { defaultMaxChance = Integer.parseInt(defaultValue.substring(c + 1)); } catch (NumberFormatException nfe) { } - ; } else { try { defaultChance = Integer.parseInt(defaultValue); } catch (NumberFormatException nfe) { } - ; } } @@ -358,19 +354,16 @@ public abstract class Editor extends JPanel implements ProjectElementListener { chance = Integer.parseInt(initialValue.substring(0, c)); } catch (NumberFormatException nfe) { } - ; try { maxChance = Integer.parseInt(initialValue.substring(c + 1)); } catch (NumberFormatException nfe) { } - ; } else { try { chance = Integer.parseInt(initialValue); currentFormIsRatio = false; } catch (NumberFormatException nfe) { } - ; } } diff --git a/src/com/gpl/rpg/atcontentstudio/ui/ScrollablePanel.java b/src/com/gpl/rpg/atcontentstudio/ui/ScrollablePanel.java index 38312d5..72900bb 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/ScrollablePanel.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/ScrollablePanel.java @@ -10,12 +10,12 @@ public class ScrollablePanel extends JPanel implements Scrollable, SwingConstant public enum ScrollableSizeHint { NONE, FIT, - STRETCH; + STRETCH } public enum IncrementType { PERCENT, - PIXELS; + PIXELS } private ScrollableSizeHint scrollableHeight = ScrollableSizeHint.NONE; diff --git a/src/com/gpl/rpg/atcontentstudio/ui/WorkerDialog.java b/src/com/gpl/rpg/atcontentstudio/ui/WorkerDialog.java index 4f3c4cc..38e67ea 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/WorkerDialog.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/WorkerDialog.java @@ -45,7 +45,6 @@ public class WorkerDialog extends JDialog { JOptionPane.showMessageDialog(parent, "Done !"); } - ; }.start(); } } diff --git a/src/com/gpl/rpg/atcontentstudio/ui/WorkspaceActions.java b/src/com/gpl/rpg/atcontentstudio/ui/WorkspaceActions.java index 4ead144..a2072f0 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/WorkspaceActions.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/WorkspaceActions.java @@ -33,7 +33,6 @@ public class WorkspaceActions { new ProjectCreationWizard().setVisible(true); } - ; }; @@ -44,13 +43,10 @@ public class WorkspaceActions { selectedNode = null; } - ; - public void selectionChanged(ProjectTreeNode selectedNode, TreePath[] selectedPaths) { setEnabled(selectedNode instanceof Project); } - ; }; @@ -60,13 +56,10 @@ public class WorkspaceActions { Workspace.openProject((ClosedProject) selectedNode); } - ; - public void selectionChanged(ProjectTreeNode selectedNode, TreePath[] selectedPaths) { setEnabled(selectedNode instanceof ClosedProject); } - ; }; public ATCSAction deleteProject = new ATCSAction("Delete project", "Deletes the project, and all created/altered data, from disk") { @@ -82,13 +75,10 @@ public class WorkspaceActions { } } - ; - public void selectionChanged(ProjectTreeNode selectedNode, TreePath[] selectedPaths) { setEnabled(selectedNode instanceof Project || selectedNode instanceof ClosedProject); } - ; }; public ATCSAction saveElement = new ATCSAction("Save this element", "Saves the current state of this element on disk") { @@ -101,8 +91,6 @@ public class WorkspaceActions { } } - ; - public void selectionChanged(ProjectTreeNode selectedNode, TreePath[] selectedPaths) { if (selectedNode instanceof GameDataElement) { setEnabled(((GameDataElement) selectedNode).needsSaving()); @@ -111,7 +99,6 @@ public class WorkspaceActions { } } - ; }; public ATCSAction deleteSelected = new ATCSAction("Delete", "Deletes the selected items") { @@ -122,8 +109,6 @@ public class WorkspaceActions { putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0)); } - ; - public void actionPerformed(ActionEvent e) { if (multiMode) { if (elementsToDelete == null) return; @@ -253,8 +238,6 @@ public class WorkspaceActions { } } - ; - public void selectionChanged(ProjectTreeNode selectedNode, TreePath[] selectedPaths) { elementsToDelete = null; if (selectedPaths != null && selectedPaths.length > 1) { @@ -284,7 +267,6 @@ public class WorkspaceActions { } } - ; }; public ATCSAction createGDE = new ATCSAction("Create Game Data Element (JSON)", "Opens the game object creation wizard") { @@ -341,13 +323,10 @@ public class WorkspaceActions { } } - ; - public void selectionChanged(ProjectTreeNode selectedNode, TreePath[] selectedPaths) { setEnabled(selectedNode instanceof Project || selectedNode instanceof SavedGamesSet); } - ; }; public ATCSAction compareItems = new ATCSAction("Items comparator", "Opens an editor showing all the items of the project in a table") { @@ -378,13 +357,10 @@ public class WorkspaceActions { new ExportProjectWizard(selectedNode.getProject()).setVisible(true); } - ; - public void selectionChanged(ProjectTreeNode selectedNode, TreePath[] selectedPaths) { setEnabled(selectedNode != null && selectedNode.getProject() != null); } - ; }; public ATCSAction runBeanShell = new ATCSAction("Run Beanshell console", "Opens a beanshell scripting pad.") { @@ -392,7 +368,6 @@ public class WorkspaceActions { new BeanShellView(); } - ; }; public ATCSAction showAbout = new ATCSAction("About...", "Displays credits and other informations about ATCS") { @@ -400,7 +375,6 @@ public class WorkspaceActions { ATContentStudio.frame.showAbout(); } - ; }; public ATCSAction exitATCS = new ATCSAction("Exit", "Closes the program") { @@ -415,7 +389,6 @@ public class WorkspaceActions { } } - ; }; public ATCSAction createWriter = new ATCSAction("Create dialogue sketch", "Create a dialogue sketch for fast dialogue edition") { @@ -435,8 +408,6 @@ public class WorkspaceActions { // frame.setVisible(true); } - ; - public void selectionChanged(ProjectTreeNode selectedNode, TreePath[] selectedPaths) { setEnabled(selectedNode != null && selectedNode.getProject() != null); } @@ -464,8 +435,6 @@ public class WorkspaceActions { } - ; - public void selectionChanged(ProjectTreeNode selectedNode, TreePath[] selectedPaths) { setEnabled(selectedNode != null && selectedNode instanceof Dialogue); } @@ -476,13 +445,10 @@ public class WorkspaceActions { new WorkspaceSettingsEditor(Workspace.activeWorkspace.settings); } - ; - public void selectionChanged(ProjectTreeNode selectedNode, TreePath[] selectedPaths) { setEnabled(true); } - ; }; List actions = new ArrayList(); @@ -541,8 +507,6 @@ public class WorkspaceActions { public void actionPerformed(ActionEvent e) { } - ; - public Map values = new LinkedHashMap(); @Override diff --git a/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/ItemEditor.java b/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/ItemEditor.java index 50d7bd6..3f57134 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/ItemEditor.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/ItemEditor.java @@ -1165,7 +1165,6 @@ public class ItemEditor extends JSONElementEditor { public static class SourceTimedConditionsListModel extends OrderedListenerListModel { public SourceTimedConditionsListModel(Common.DeathEffect effect) { super(effect); - ; } @Override diff --git a/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/dialoguetree/DialogueGraphView.java b/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/dialoguetree/DialogueGraphView.java index 0c8a36f..aedbfa7 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/dialoguetree/DialogueGraphView.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/gamedataeditors/dialoguetree/DialogueGraphView.java @@ -204,7 +204,6 @@ public class DialogueGraphView extends Display { dNode.setString(LABEL, message + translationHeader + unit.translatedText); } - ; }; } else { label = dialogue.message; @@ -244,7 +243,6 @@ public class DialogueGraphView extends Display { rNode.setString(LABEL, message + translationHeader + unit.translatedText); } - ; }; } else { label = r.text; diff --git a/src/com/gpl/rpg/atcontentstudio/ui/map/WorldMapEditor.java b/src/com/gpl/rpg/atcontentstudio/ui/map/WorldMapEditor.java index 0f0d4f7..6b2f68c 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/map/WorldMapEditor.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/map/WorldMapEditor.java @@ -985,7 +985,6 @@ public class WorldMapEditor extends Editor implements FieldUpdateListener { repaintMap(); } - ; }; private void setCurrentSelectionModel(ListModel listModel, ListSelectionModel listSelectionModel) { diff --git a/src/com/gpl/rpg/atcontentstudio/ui/sprites/SpritesheetEditor.java b/src/com/gpl/rpg/atcontentstudio/ui/sprites/SpritesheetEditor.java index da8acb0..a7cf830 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/sprites/SpritesheetEditor.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/sprites/SpritesheetEditor.java @@ -323,7 +323,6 @@ public class SpritesheetEditor extends Editor { } } - ; }; animator.start(); } diff --git a/src/com/gpl/rpg/atcontentstudio/ui/tools/writermode/WriterModeEditor.java b/src/com/gpl/rpg/atcontentstudio/ui/tools/writermode/WriterModeEditor.java index 218dead..866daf2 100644 --- a/src/com/gpl/rpg/atcontentstudio/ui/tools/writermode/WriterModeEditor.java +++ b/src/com/gpl/rpg/atcontentstudio/ui/tools/writermode/WriterModeEditor.java @@ -768,8 +768,6 @@ public class WriterModeEditor extends Editor { } } - ; - private void showEditorOnSelected() { if (selected == null) return;