Skip to main content

[websocket-spec~source-code-repository:250] use Collections.emptyList()

  • From:
  • To:
  • Subject: [websocket-spec~source-code-repository:250] use Collections.emptyList()
  • Date: Thu, 28 Feb 2013 01:26:52 +0000

Project:    websocket-spec
Repository: source-code-repository
Revision:   250
Author:     dannycoward
Date:       2013-02-28 01:26:50 UTC
Link:       

Log Message:
------------
use Collections.emptyList()


Revisions:
----------
250


Modified Paths:
---------------
trunk/api/client/src/main/java/javax/websocket/ClientEndpointConfig.java


Diffs:
------
Index: 
trunk/api/client/src/main/java/javax/websocket/ClientEndpointConfig.java
===================================================================
--- trunk/api/client/src/main/java/javax/websocket/ClientEndpointConfig.java  
  (revision 249)
+++ trunk/api/client/src/main/java/javax/websocket/ClientEndpointConfig.java  
  (revision 250)
@@ -146,10 +146,10 @@
     * @author dannycoward
     */
    public class Builder {
-       private List<String> preferredSubprotocols = new ArrayList<String>();
-       private List<Extension> extensions = new ArrayList<Extension>();
-       private List<Encoder> encoders = new ArrayList<Encoder>();
-       private List<Decoder> decoders = new ArrayList<Decoder>();
+       private List<String> preferredSubprotocols = Collections.emptyList();
+       private List<Extension> extensions = Collections.emptyList();
+       private List<Encoder> encoders = Collections.emptyList();
+       private List<Decoder> decoders = Collections.emptyList();
        private ClientEndpointConfig.Configurator clientEndpointConfigurator 
= new ClientEndpointConfig.Configurator() {
 
        };





[websocket-spec~source-code-repository:250] use Collections.emptyList()

dannycoward 02/28/2013
 
 
Close
loading
Please Confirm
Close