mirror of
https://github.com/Noratrieb/UMLetClassParser.git
synced 2026-01-14 16:45:05 +01:00
fixed arg regex
This commit is contained in:
parent
096621c19b
commit
cb331331f1
3 changed files with 2 additions and 4 deletions
|
|
@ -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+)";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,8 +52,6 @@ public class UMLClass {
|
|||
for (UMLField field : fields) {
|
||||
s.append(field.toString());
|
||||
}
|
||||
|
||||
s.append("\n");
|
||||
}
|
||||
|
||||
if (methods.size() > 0) {
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue