websocket-spec
  1. websocket-spec
  2. WEBSOCKET_SPEC-179

Double wrapping of Collections.unmodifiableList in ClientEndpointConfig.Builder

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Minor performance improvement in the implementation of ClientEndpointConfig.Builder. It wraps all the lists into Collections.unmodifiableList and then again in DefaultClientEndpointConfig. Moreover, the empty lists themselves are unmodifiable. The same improvement can be done for ServerEndpointConfig.Builder.

      Will attach the patch for ClientEndpointConfig.Builder to the issue mail.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            jitu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: