This commit is contained in:
nora 2020-11-19 20:05:35 +01:00
parent 5b0937a8eb
commit 501fa2f293
6 changed files with 66 additions and 16 deletions

View file

@ -29,7 +29,7 @@ public class UMLMethod {
* name;
* args in the UML format
*/
String formatted = line.replaceAll("([+\\-~#]) (.+)\\((.*: .*,?)?\\):? ?(.+)?", "$1;$4;$2;$3");
String formatted = line.replaceAll("([+\\-~#]) ?(.+)\\((.*: .*,?)?\\):? ?(.+)?", "$1;$4;$2;$3");
String[] parts = formatted.split(";");
this.encapsulation = switch (parts[0]) {
case "+" -> "public ";