fixed contructor double space bug

This commit is contained in:
nora 2020-11-20 18:17:35 +01:00
parent d5f5dddbc3
commit 0577d64522
2 changed files with 4 additions and 4 deletions

View file

@ -34,9 +34,9 @@ public class UMLMethod {
if(parts[1].equals("") && !className.equals(name)){
this.returnType = "void";
this.returnType = "void ";
} else {
this.returnType = parts[1];
this.returnType = parts[1] + " ";
}
if(parts.length == 4) {
@ -57,7 +57,7 @@ public class UMLMethod {
@Override
public String toString() {
StringBuilder returnString = new StringBuilder();
returnString.append("\n ").append(encapsulation).append(returnType).append(" ").append(name).append(" (");
returnString.append("\n ").append(encapsulation).append(returnType).append(name).append(" (");
for (int i = 0; i < argsNames.size(); i++) {
returnString.append(argsTypes.get(i)).append(" ").append(argsNames.get(i));