Changeset cee3ebb for core


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

less wtf

Location:
core/java
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.