Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902313

'String::indexOf()' is replaceable with a simpler 'String::contains()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: jt5.0
    • Fix Version/s: jt6.0
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b04

      Description

      There are many uses of constructs like
      "string".indexOf("substring") != -1
      that could be simplified to
      "string".contains("substring")

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dbessono Dmitry Bessonov
                Reporter:
                dbessono Dmitry Bessonov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: