File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/io/socket/client Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ public void call(Object... objects) {
416416
417417 /*package*/ void destroy (Socket socket ) {
418418 this .connected .remove (socket );
419- if (this .connected .size () > 0 ) return ;
419+ if (! this .connected .isEmpty () ) return ;
420420
421421 this .close ();
422422 }
@@ -447,7 +447,7 @@ public void call(Object[] encodedPackets) {
447447 }
448448
449449 private void processPacketQueue () {
450- if (this .packetBuffer .size () > 0 && !this .encoding ) {
450+ if (! this .packetBuffer .isEmpty () && !this .encoding ) {
451451 Packet pack = this .packetBuffer .remove (0 );
452452 this .packet (pack );
453453 }
Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ private void onevent(Packet<JSONArray> packet) {
312312 }
313313
314314 if (this .connected ) {
315- if (args .size () == 0 ) return ;
315+ if (args .isEmpty () ) return ;
316316 String event = args .remove (0 ).toString ();
317317 super .emit (event , args .toArray ());
318318 } else {
You can’t perform that action at this time.
0 commit comments