GraphUtils.java can use String.replace() instead of String.replaceAll()

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 25
    • Component/s: tools
    • b12


      jdk.compiler/share/classes/com/sun/tools/javac/util/GraphUtils.java
      254│ return p.toString().replaceAll(",", " ")
      255│ .replaceAll("\\{", "[")
      256│ .replaceAll("\\}", "]");

      This could be

          return p.toString().replace(',', ' ')
              .replace('{', '[')
              .replace('}', ']');

            Assignee:
            Archie Cobbs
            Reporter:
            Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: