fixed arg regex

This commit is contained in:
nora 2020-11-20 20:30:39 +01:00
parent 096621c19b
commit cb331331f1
3 changed files with 2 additions and 4 deletions

View file

@ -50,5 +50,5 @@ public class Regex {
* <li>2 The datatype</li>
* </ul>
*/
public static final String ARG_SPLIT_REGEX = " ?(\\w+): (\\w+)";
public static final String ARG_SPLIT_REGEX = " *(\\w+) *: *(\\w+)";
}

View file

@ -52,8 +52,6 @@ public class UMLClass {
for (UMLField field : fields) {
s.append(field.toString());
}
s.append("\n");
}
if (methods.size() > 0) {

View file

@ -50,7 +50,7 @@ public class UMLMethod {
@Override
public String toString() {
StringBuilder returnString = new StringBuilder();
returnString.append(" ").append(encapsulation).append(returnType).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));