diff --git a/src/UMLClassView.form b/src/UMLClassView.form index c6a73e1..a6f8f28 100644 --- a/src/UMLClassView.form +++ b/src/UMLClassView.form @@ -72,7 +72,7 @@ - + @@ -98,14 +98,6 @@ - - - - - - - - diff --git a/src/UMLClassView.java b/src/UMLClassView.java index 57141c4..704af4d 100644 --- a/src/UMLClassView.java +++ b/src/UMLClassView.java @@ -24,14 +24,6 @@ public class UMLClassView { public UMLClassView() { - convertButton.addActionListener(e -> { - String text = inputArea.getText(); - - UMLClass umlClass = new UMLClass(text, ""); - - outputArea.setText(umlClass.toString()); - }); - inputArea.addKeyListener(new KeyAdapter() { @Override public void keyPressed(KeyEvent e) { diff --git a/src/UMLMethod.java b/src/UMLMethod.java index 95b80d2..53df229 100644 --- a/src/UMLMethod.java +++ b/src/UMLMethod.java @@ -6,20 +6,13 @@ public class UMLMethod { private final String name; private final String encapsulation; - private ArrayList argsNames = new ArrayList<>(); - private ArrayList argsTypes = new ArrayList<>(); + private final ArrayList argsNames = new ArrayList<>(); + private final ArrayList argsTypes = new ArrayList<>(); public UMLMethod(String line, String className) { //First, format it nicely - /** - * Formatted line: - * EncapsulationIndicator; - * retunType("" for void); - * name; - * args in the UML format - */ String formatted = line.replaceAll(Regex.METHOD_FIND_REGEX, "$1;$4;$2;$3"); String[] parts = formatted.split(";"); this.encapsulation = switch (parts[0]) {