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

Use String.equals instead of String.compareTo in jdk.jcmd

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 18
    • None
    • core-svc
    • None
    • b24

      In several places, String.compareTo was _compared_ with 0 ( via `== 0` or `!= 0`).
      Instead of this, we can use String.equals calls. String.equals is faster and shorter.

            aturbanov Andrey Turbanov
            aturbanov Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: