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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Library / CEP
    • 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

            Unassigned Unassigned
            17hao shiqihao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: