Changeset cee3ebb


Ignore:
Timestamp:
Oct 21, 2016 3:20:35 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
082a5d3
Parents:
9b27251
Message:

less wtf

Files:
22 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/dht/KRPC.java

    r9b27251 rcee3ebb  
    867867    private ReplyWaiter sendQuery(NodeInfo nInfo, Map<String, Object> map, boolean repliable) {
    868868        if (nInfo.equals(_myNodeInfo))
    869             throw new IllegalArgumentException("wtf don't send to ourselves");
     869            throw new IllegalArgumentException("don't send to ourselves");
    870870        if (_log.shouldLog(Log.DEBUG))
    871871            _log.debug("Sending query to: " + nInfo);
     
    917917    private boolean sendResponse(NodeInfo nInfo, MsgID msgID, Map<String, Object> map) {
    918918        if (nInfo.equals(_myNodeInfo))
    919             throw new IllegalArgumentException("wtf don't send to ourselves");
     919            throw new IllegalArgumentException("don't send to ourselves");
    920920        if (_log.shouldLog(Log.DEBUG))
    921921            _log.debug("Sending response to: " + nInfo);
     
    947947    private boolean sendError(NodeInfo nInfo, MsgID msgID, Map<String, Object> map) {
    948948        if (nInfo.equals(_myNodeInfo))
    949             throw new IllegalArgumentException("wtf don't send to ourselves");
     949            throw new IllegalArgumentException("don't send to ourselves");
    950950        if (_log.shouldLog(Log.INFO))
    951951            _log.info("Sending error to: " + nInfo);
     
    10051005        }
    10061006        if (dest.calculateHash().equals(_myNodeInfo.getHash()))
    1007             throw new IllegalArgumentException("wtf don't send to ourselves");
     1007            throw new IllegalArgumentException("don't send to ourselves");
    10081008        byte[] payload = BEncoder.bencode(map);
    10091009        if (_log.shouldLog(Log.DEBUG)) {
     
    10211021            if (payload == null) {
    10221022                if (_log.shouldLog(Log.WARN))
    1023                     _log.warn("WTF DGM fail");
     1023                    _log.warn("DGM fail");
    10241024                return false;
    10251025            }
     
    10411041            } else {
    10421042                if (_log.shouldLog(Log.WARN))
    1043                     _log.warn("WTF sendMessage fail");
     1043                    _log.warn("sendMessage fail");
    10441044            }
    10451045            return success;
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/irc/IRCFilter.java

    r9b27251 rcee3ebb  
    6565            command = field[idx++].toUpperCase(Locale.US);
    6666        } catch (IndexOutOfBoundsException ioobe) {
    67             // wtf, server sent borked command?
     67            // server sent borked command?
    6868           //_log.warn("Dropping defective message: index out of bounds while extracting command.");
    6969           return null;
     
    283283       
    284284        if(field[0].charAt(0)==':')
    285             return null; // wtf
     285            return null; // ???
    286286       
    287287        String command = field[0].toUpperCase(Locale.US);
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/socks/SOCKS5Server.java

    r9b27251 rcee3ebb  
    169169        int socksVer = in.readUnsignedByte();
    170170        if (socksVer != SOCKS_VERSION_5) {
    171             _log.debug("error in SOCKS5 request (protocol != 5? wtf?)");
     171            _log.debug("error in SOCKS5 request (protocol != 5?)");
    172172            throw new SOCKSException("Invalid protocol version in request: " + socksVer);
    173173        }
     
    222222                int addrLen = in.readUnsignedByte();
    223223                if (addrLen == 0) {
    224                     _log.debug("0-sized address length? wtf?");
     224                    _log.debug("0-sized address length?");
    225225                    throw new SOCKSException("Illegal DOMAINNAME length");
    226226                }
     
    316316            break;
    317317        default:
    318             _log.error("unknown address type passed to sendReply() (" + Integer.toHexString(addressType) + ")! wtf?");
     318            _log.error("unknown address type passed to sendReply() (" + Integer.toHexString(addressType) + ")!");
    319319            return;
    320320        }
  • apps/sam/java/test/net/i2p/sam/TestSwarm.java

    r9b27251 rcee3ebb  
    9898                _log.debug("Connection " + flooder.getConnectionId() + " closed to " + flooder.getDestination());
    9999            } else {
    100                 _log.error("wtf, not connected to " + id + " but we were just closed?");
     100                _log.error("not connected to " + id + " but we were just closed?");
    101101            }
    102102        }
     
    110110                flooder.received(length, value);
    111111            } else {
    112                 _log.error("wtf, not connected to " + id + " but we received " + value + "?");
     112                _log.error("not connected to " + id + " but we received " + value + "?");
    113113            }
    114114        }
     
    147147                _log.debug("Hello reply found: " + serverVersion);
    148148                if (serverVersion == null)
    149                     throw new IOException("wtf, hello failed?");
     149                    throw new IOException("hello failed?");
    150150                String req = "SESSION CREATE STYLE=STREAM DESTINATION=" + _destFile + " " + _conOptions + "\n";
    151151                _samOut.write(DataHelper.getUTF8(req));
  • apps/streaming/java/src/net/i2p/client/streaming/impl/Connection.java

    r9b27251 rcee3ebb  
    11371137                return;
    11381138            }
    1139             // wtf, this shouldn't have been scheduled
     1139            // this shouldn't have been scheduled
    11401140            if (_options.getInactivityTimeout() <= 0) {
    11411141                if (_log.shouldLog(Log.DEBUG)) _log.debug("Inactivity timeout reached, but there is no timer...");
  • apps/streaming/java/src/net/i2p/client/streaming/impl/ConnectionDataReceiver.java

    r9b27251 rcee3ebb  
    141141       
    142142        //if ( (built-before > 5*1000) && (_log.shouldLog(Log.WARN)) )
    143         //    _log.warn("wtf, took " + (built-before) + "ms to build a packet: " + packet);
     143        //    _log.warn(took " + (built-before) + "ms to build a packet: " + packet);
    144144        //if ( (sent-built> 5*1000) && (_log.shouldLog(Log.WARN)) )
    145         //    _log.warn("wtf, took " + (sent-built) + "ms to send a packet: " + packet);
     145        //    _log.warn(took " + (sent-built) + "ms to send a packet: " + packet);
    146146        return packet;
    147147    }
  • apps/streaming/java/src/net/i2p/client/streaming/impl/ConnectionPacketHandler.java

    r9b27251 rcee3ebb  
    543543        } else {
    544544            if (_log.shouldLog(Log.WARN))
    545                 _log.warn("Received a packet for the wrong connection?  wtf: "
     545                _log.warn("Received a packet for the wrong connection? "
    546546                          + con + " / " + packet);
    547547            return;
  • apps/streaming/java/src/net/i2p/client/streaming/impl/MessageOutputStream.java

    r9b27251 rcee3ebb  
    178178        long elapsed = _context.clock().now() - begin;
    179179        if ( (elapsed > 10*1000) && (_log.shouldLog(Log.INFO)) )
    180             _log.info("wtf, took " + elapsed + "ms to write to the stream?", new Exception("foo"));
     180            _log.info("took " + elapsed + "ms to write to the stream?", new Exception("foo"));
    181181        throwAnyError();
    182182        //updateBps(len);
     
    375375        long elapsed = _context.clock().now() - begin;
    376376        if ( (elapsed > 10*1000) && (_log.shouldLog(Log.DEBUG)) )
    377             _log.debug("wtf, took " + elapsed + "ms to flush the stream?\n" + ws, new Exception("bar"));
     377            _log.debug("took " + elapsed + "ms to flush the stream?\n" + ws, new Exception("bar"));
    378378        throwAnyError();
    379379    }
  • core/java/src/net/i2p/crypto/CryptixAESEngine.java

    r9b27251 rcee3ebb  
    215215            } catch (InvalidKeyException ike) {
    216216                _log.log(Log.CRIT, "Invalid key", ike);
    217                 throw new IllegalArgumentException("wtf, invalid key?  " + ike.getMessage());
     217                throw new IllegalArgumentException("invalid key?  " + ike.getMessage());
    218218            }
    219219        }
     
    242242            } catch (InvalidKeyException ike) {
    243243                _log.log(Log.CRIT, "Invalid key", ike);
    244                 throw new IllegalArgumentException("wtf, invalid key?  " + ike.getMessage());
     244                throw new IllegalArgumentException("invalid key?  " + ike.getMessage());
    245245            }
    246246        }
  • core/java/src/net/i2p/crypto/TrustedUpdate.java

    r9b27251 rcee3ebb  
    494494            return new String(data, "UTF-8");
    495495        } catch (UnsupportedEncodingException uee) {
    496             throw new RuntimeException("wtf, your JVM doesnt support utf-8? " + uee.getMessage());
     496            throw new RuntimeException("your JVM doesnt support utf-8? " + uee.getMessage());
    497497        } catch (IOException ioe) {
    498498            return "";
     
    533533            return new String(data, "UTF-8");
    534534        } catch (UnsupportedEncodingException uee) {
    535             throw new RuntimeException("wtf, your JVM doesnt support utf-8? " + uee.getMessage());
     535            throw new RuntimeException("your JVM doesnt support utf-8? " + uee.getMessage());
    536536        } catch (IOException ioe) {
    537537            return "";
     
    747747            versionRawBytes = version.getBytes("UTF-8");
    748748        } catch (UnsupportedEncodingException e) {
    749             throw new RuntimeException("wtf, your JVM doesnt support utf-8? " + e.getMessage());
     749            throw new RuntimeException("your JVM doesnt support utf-8? " + e.getMessage());
    750750        }
    751751
  • core/java/src/net/i2p/data/DataHelper.java

    r9b27251 rcee3ebb  
    662662       
    663663        if (rv < 0)
    664             throw new DataFormatException("wtf, fromLong got a negative? " + rv + " numBytes=" + numBytes);
     664            throw new DataFormatException("fromLong got a negative? " + rv + " numBytes=" + numBytes);
    665665        return rv;
    666666    }
     
    754754        }
    755755        if (rv < 0)
    756             throw new IllegalArgumentException("wtf, fromLong got a negative? " + rv + ": offset="+ offset +" numBytes="+numBytes);
     756            throw new IllegalArgumentException("fromLong got a negative? " + rv + ": offset="+ offset +" numBytes="+numBytes);
    757757        return rv;
    758758    }
     
    775775        }
    776776        if (rv < 0)
    777             throw new IllegalArgumentException("wtf, fromLong got a negative? " + rv + ": offset="+ offset +" numBytes="+numBytes);
     777            throw new IllegalArgumentException("fromLong got a negative? " + rv + ": offset="+ offset +" numBytes="+numBytes);
    778778        return rv;
    779779    }
  • core/java/src/net/i2p/data/i2cp/SessionConfig.java

    r9b27251 rcee3ebb  
    156156        byte data[] = getBytes();
    157157        if (data == null) {
    158             //if (_log.shouldLog(Log.WARN)) _log.warn("Bytes could not be found - wtf?");
     158            //if (_log.shouldLog(Log.WARN)) _log.warn("Bytes could not be found");
    159159            return false;
    160160        }
  • core/java/src/net/i2p/kademlia/KBucketSet.java

    r9b27251 rcee3ebb  
    433433             return rv;
    434434        }
    435         _log.error("Key does not fit in any bucket?! WTF!\nKey  : ["
     435        _log.error("Key does not fit in any bucket?!\nKey  : ["
    436436                   + DataHelper.toHexString(key.getData()) + "]"
    437437                   + "\nUs   : " + _us
    438438                   + "\nDelta: ["
    439439                   + DataHelper.toHexString(DataHelper.xor(_us.getData(), key.getData()))
    440                    + "]", new Exception("WTF"));
     440                   + "]", new Exception("???"));
    441441        _log.error(toString());
    442442        throw new IllegalStateException("pickBucket returned " + rv);
     
    589589            // dont span main bucket boundaries with depth > 1
    590590            if (fixed > 0)
    591                 throw new IllegalStateException("WTF " + bucket);
     591                throw new IllegalStateException("??? " + bucket);
    592592            BigInteger nonz;
    593593            if (numNonZero <= 62) {
  • core/java/src/net/i2p/util/Executor.java

    r9b27251 rcee3ebb  
    4040                long time = _context.clock().now() - before;
    4141                if ( (time > 1000) && (_log.shouldLog(Log.WARN)) )
    42                     _log.warn("wtf, event execution took " + time + ": " + evt);
     42                    _log.warn("event execution took " + time + ": " + evt);
    4343            }
    4444        }
  • core/java/src/net/i2p/util/FortunaRandomSource.java

    r9b27251 rcee3ebb  
    7575     * nextInt(n) should return a number between 0 and n (including 0 and excluding n).  However, their pseudocode,
    7676     * as well as sun's, kaffe's, and classpath's implementation INCLUDES NEGATIVE VALUES.
    77      * WTF.  Ok, so we're going to have it return between 0 and n (including 0, excluding n), since
     77     * Ok, so we're going to have it return between 0 and n (including 0, excluding n), since
    7878     * thats what it has been used for.
    7979     *
  • core/java/src/net/i2p/util/RandomSource.java

    r9b27251 rcee3ebb  
    5959     * nextInt(n) should return a number between 0 and n (including 0 and excluding n).  However, their pseudocode,
    6060     * as well as sun's, kaffe's, and classpath's implementation INCLUDES NEGATIVE VALUES.
    61      * WTF.  Ok, so we're going to have it return between 0 and n (including 0, excluding n), since
     61     * Ok, so we're going to have it return between 0 and n (including 0, excluding n), since
    6262     * thats what it has been used for.
    6363     *
  • core/java/src/net/i2p/util/ResettableGZIPInputStream.java

    r9b27251 rcee3ebb  
    404404                for (int j = 0; j < read; j++) {
    405405                    if (readBuf[j] != orig[j])
    406                         throw new RuntimeException("wtf, j=" + j + " readBuf=" + readBuf[j] + " orig=" + orig[j]);
     406                        throw new RuntimeException("j=" + j + " readBuf=" + readBuf[j] + " orig=" + orig[j]);
    407407                }
    408408                boolean ok = (-1 == i.read());
    409                 if (!ok) throw new RuntimeException("wtf, not EOF after the data?");
     409                if (!ok) throw new RuntimeException("not EOF after the data?");
    410410                //System.out.println("Match ok");
    411411                // try both closing and not
  • core/java/src/net/i2p/util/SimpleScheduler.java

    r9b27251 rcee3ebb  
    171171            long before = System.currentTimeMillis();
    172172            if (_log.shouldLog(Log.WARN) && before < _scheduled - 100)
    173                 _log.warn(_name + " wtf, early execution " + (_scheduled - before) + ": " + _timedEvent);
     173                _log.warn(_name + " early execution " + (_scheduled - before) + ": " + _timedEvent);
    174174            else if (_log.shouldLog(Log.WARN) && before > _scheduled + 1000)
    175                 _log.warn(" wtf, late execution " + (before - _scheduled) + ": " + _timedEvent + debug());
     175                _log.warn("late execution " + (before - _scheduled) + ": " + _timedEvent + debug());
    176176            try {
    177177                _timedEvent.timeReached();
     
    181181            long time = System.currentTimeMillis() - before;
    182182            if (time > 1000 && _log.shouldLog(Log.WARN))
    183                 _log.warn(_name + " wtf, event execution took " + time + ": " + _timedEvent);
     183                _log.warn(_name + " event execution took " + time + ": " + _timedEvent);
    184184            if (_log.shouldLog(Log.INFO)) {
    185185                 // this call is slow - iterates through a HashMap -
  • core/java/src/net/metanotion/io/block/index/BSkipLevels.java

    r9b27251 rcee3ebb  
    174174                        } else {
    175175                                if (bf.log.shouldLog(Log.WARN))
    176                                         bf.log.warn("WTF " + this + " i = " + i + " of " +
     176                                        bf.log.warn(this + " i = " + i + " of " +
    177177                                                    lps.length + " / " + levels.length +
    178178                                                    " valid levels but page is zero");
  • core/java/src/net/metanotion/util/skiplist/SkipLevels.java

    r9b27251 rcee3ebb  
    203203                        // from debugging other problems
    204204                        if (res == null) {
    205                                 _log.warn("WTF killing with no return value " + print());
     205                                _log.warn("killing with no return value " + print());
    206206                        } else if (res[1] == null) {
    207                                 _log.warn("WTF killing with no return value 1 " + print());
     207                                _log.warn("killing with no return value 1 " + print());
    208208                        } else if (res[1] != this) {
    209                                 _log.warn("WTF killing with return value not us " + res[1] + ' ' + print());
     209                                _log.warn("killing with return value not us " + res[1] + ' ' + print());
    210210                        }
    211211                        this.killInstance();
  • core/java/test/junit/net/i2p/crypto/AESInputStream.java

    r9b27251 rcee3ebb  
    196196       
    197197        if (_decryptedSize != 0)
    198             throw new IOException("wtf, decrypted size is not 0? " + _decryptedSize);
     198            throw new IOException("decrypted size is not 0? " + _decryptedSize);
    199199       
    200200        _context.aes().decrypt(_encryptedBuf, 0, _encryptedBuf, 0, _key, _lastBlock, BLOCK_SIZE);
  • router/java/test/junit/net/i2p/router/transport/BandwidthLimitedOutputStream.java

    r9b27251 rcee3ebb  
    6262        if (len <= 0) return;
    6363        if (len + off > src.length)
    64             throw new IllegalArgumentException("wtf are you thinking?  len=" + len
     64            throw new IllegalArgumentException("what are you thinking?  len=" + len
    6565                                               + ", off=" + off + ", data=" + src.length);
    6666        _currentRequest = _context.bandwidthLimiter().requestOutbound(len, 0, _peerTarget);
Note: See TracChangeset for help on using the changeset viewer.