Android: Fix warnings
TBR=sakal@webrtc.org Bug: webrtc:6597,webrtc:8534 Change-Id: I39f96d9e0e6d604051b1cc13368dd44fc82b30b0 Reviewed-on: https://webrtc-review.googlesource.com/23622 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20719}
This commit is contained in:
committed by
Commit Bot
parent
df0822b102
commit
6062f372c7
@ -17,7 +17,8 @@ import de.tavendo.autobahn.WebSocketConnection;
|
||||
import de.tavendo.autobahn.WebSocketException;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.util.LinkedList;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.appspot.apprtc.util.AsyncHttpURLConnection;
|
||||
import org.appspot.apprtc.util.AsyncHttpURLConnection.AsyncHttpEvents;
|
||||
import org.json.JSONException;
|
||||
@ -48,7 +49,7 @@ public class WebSocketChannelClient {
|
||||
private boolean closeEvent;
|
||||
// WebSocket send queue. Messages are added to the queue when WebSocket
|
||||
// client is not registered and are consumed in register() call.
|
||||
private final LinkedList<String> wsSendQueue;
|
||||
private final List<String> wsSendQueue = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* Possible WebSocket connection states.
|
||||
@ -70,7 +71,6 @@ public class WebSocketChannelClient {
|
||||
this.events = events;
|
||||
roomID = null;
|
||||
clientID = null;
|
||||
wsSendQueue = new LinkedList<>();
|
||||
state = WebSocketConnectionState.NEW;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user