Skip to content

Commit

Permalink
Fix #179: Avoid double wrapping with Collections.unmodifiableList()
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Apr 4, 2018
1 parent cb9cb44 commit 54e61d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ public static ClientEndpointConfig.Builder create() {
*/
public ClientEndpointConfig build() {
return new DefaultClientEndpointConfig(
Collections.unmodifiableList(this.preferredSubprotocols),
Collections.unmodifiableList(this.extensions),
Collections.unmodifiableList(this.encoders),
Collections.unmodifiableList(this.decoders),
this.preferredSubprotocols,
this.extensions,
this.encoders,
this.decoders,
this.clientEndpointConfigurator);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ public ServerEndpointConfig build() {
return new DefaultServerEndpointConfig(
this.endpointClass,
this.path,
Collections.unmodifiableList(this.subprotocols),
Collections.unmodifiableList(this.extensions),
Collections.unmodifiableList(this.encoders),
Collections.unmodifiableList(this.decoders),
this.subprotocols,
this.extensions,
this.encoders,
this.decoders,
this.serverEndpointConfigurator
);
}
Expand Down

0 comments on commit 54e61d0

Please sign in to comment.