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 5a32b73f26
commit 73d4d652ff
5 changed files with 92 additions and 3 deletions

View File

@@ -45,6 +45,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()
}
}