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

Fix the bug of parsing Dewey number from string

    XMLWordPrintableJSON

    Details

      Description

      There is a bug in the current implementation for parsing the Dewey number:

       

      String[] splits = deweyNumberString.split("
      .");

      if (splits.length == 0)

      { return new DeweyNumber(Integer.parseInt(deweyNumberString)); }

       

      The length in the if condition should be 1 instead of 0.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fan_li_ya Liya Fan
                Reporter:
                fan_li_ya Liya Fan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m