Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8349991

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 25
    • 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('}', ']');

            acobbs Archie Cobbs
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: