Fixed invalid OptionalProperty conversion

without this change a toString was executed on an optional property due to a missing method that parses those kind of props.
with this change we've added a missing method and also we've made optional property toString return the proper pattern

fixes #173
This commit is contained in:
Marcin Grzejszczak
2016-12-21 16:14:30 +01:00
parent 4acc3ca1ee
commit 9f71e50349
5 changed files with 92 additions and 3 deletions

View File

@@ -47,6 +47,6 @@ class ExecutionProperty {
@Override
public String toString() {
return executionCommand;
return executionCommand
}
}

View File

@@ -38,4 +38,10 @@ class OptionalProperty {
String optionalPattern() {
return "($value)?"
}
@Override
public String toString() {
return optionalPattern()
}
}