Remove unnecessary Map.get from AWTAutoShutdown.unregisterPeer

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 26
    • Affects Version/s: None
    • Component/s: client-libs
    • b03

          if (peerMap.get(target) == peer) {
              peerMap.remove(target);
              notifyPeerMapUpdated();
          }

      Instead of separate get+remove calls we can use Map.remove(Key,Value) instead.
      peerMap is an IdentityHashMap, so semantic is the same.

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

              Created:
              Updated:
              Resolved: