You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "shiqihao (Jira)" <ji...@apache.org> on 2021/03/30 11:45:00 UTC

[jira] [Created] (FLINK-22046) org.apache.flink.cep.nfa.State#toString() may has a abnormal format

shiqihao created FLINK-22046:
--------------------------------

             Summary: org.apache.flink.cep.nfa.State#toString() may has a abnormal format
                 Key: FLINK-22046
                 URL: https://issues.apache.org/jira/browse/FLINK-22046
             Project: Flink
          Issue Type: Improvement
          Components: Library / CEP
            Reporter: shiqihao
         Attachments: image-2021-03-30-19-42-25-741.png

{code:java}
@Override
public String toString() {
    StringBuilder builder = new StringBuilder();

    builder.append(stateType).append(" State ").append(name).append(" [\n");
    for (StateTransition<T> stateTransition : stateTransitions) {
        builder.append("\t").append(stateTransition).append(",\n");
    }
    builder.append("])"); // right parenthesis is opening
    return builder.toString();
}
{code}
As I comment above, the left parenthesis is missing. The output of toString() method is something like this: 

!image-2021-03-30-19-42-25-741.png!

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)