Avoid String.compareTo == 0 to check String equality in java.management

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 18
    • Affects Version/s: None
    • Component/s: core-svc
    • None

      In several places, String.compareTo == 0 is used to check String.equality
      Instead of this, we can use String.equals and switch expression. They are faster and code is easier to read.

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

              Created:
              Updated:
              Resolved: