Uploaded image for project: 'REEF'
  1. REEF
  2. REEF-871

Replace put with putIfAbsent in HandlerContainer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 0.14
    • Wake
    • None

    Description

      It looks a kind of typo.

           final EventHandler<RemoteMessage<? extends T>> prevHandler =
      -        this.msgTypeToHandlerMap.put(messageType, theHandler);
      +        this.msgTypeToHandlerMap.putIfAbsent(messageType, theHandler);
      

      Attachments

        Issue Links

          Activity

            People

              dongjoon Dongjoon Hyun
              dongjoon Dongjoon Hyun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: