Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-22046

org.apache.flink.cep.nfa.State#toString() may has abnormal format

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Library / CEP
    • Labels:
      None

      Description

      @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();
      }
      

      As I comment above, the right parenthesis is redundent (or the left parenthesis is missing). The output of toString() method is something like this: 

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              17hao shiqihao

              Dates

              • Created:
                Updated:

                Issue deployment