Changeset 2baee74 for apps/ministreaming


Ignore:
Timestamp:
May 5, 2010 4:51:54 PM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
9ac5fb4
Parents:
16bec08f
Message:
  • Replace size() ⇐ 0 with isEmpty() everywhere, ditto > 0 → !isEmpty()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/ministreaming/java/src/net/i2p/client/streaming/I2PServerSocketImpl.java

    r16bec08f r2baee74  
    7070       
    7171        while ( (ret == null) && (!closing) ){
    72             while (pendingSockets.size() <= 0) {
     72            while (pendingSockets.isEmpty()) {
    7373                if (closing) throw new ConnectException("I2PServerSocket closed");
    7474                try {
     
    7979            }
    8080            synchronized (pendingSockets) {
    81                 if (pendingSockets.size() > 0) {
     81                if (!pendingSockets.isEmpty()) {
    8282                    ret = (I2PSocket)pendingSockets.remove(0);
    8383                }
Note: See TracChangeset for help on using the changeset viewer.