Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.9.1
Description
The toString method in StateTransition does not have a good format.
@Override public String toString() { return new StringBuilder() .append("StateTransition(") .append(action).append(", ") .append("from ").append(sourceState.getName()) .append("to ").append(targetState.getName()) .append(condition != null ? ", with condition)" : ")") .toString(); }
The problem is there's no separator between `sourceState.getName()` and "to " which leads to a bad format like the attachment showing.
A blank space is more friendly.
@Override public String toString() { return new StringBuilder() .append("StateTransition(") .append(action).append(", ") .append("from ").append(sourceState.getName()) .append(" to ").append(targetState.getName()) .append(condition != null ? ", with condition)" : ")") .toString(); }
Attachments
Attachments
Issue Links
- links to