This commit is contained in:
zzz
2016-10-21 15:20:35 +00:00
parent 9b27251473
commit cee3ebbb23
22 changed files with 48 additions and 48 deletions

View File

@ -214,7 +214,7 @@ public final class CryptixAESEngine extends AESEngine {
sessionKey.setPreparedKey(key);
} catch (InvalidKeyException ike) {
_log.log(Log.CRIT, "Invalid key", ike);
throw new IllegalArgumentException("wtf, invalid key? " + ike.getMessage());
throw new IllegalArgumentException("invalid key? " + ike.getMessage());
}
}
@ -241,7 +241,7 @@ public final class CryptixAESEngine extends AESEngine {
sessionKey.setPreparedKey(key);
} catch (InvalidKeyException ike) {
_log.log(Log.CRIT, "Invalid key", ike);
throw new IllegalArgumentException("wtf, invalid key? " + ike.getMessage());
throw new IllegalArgumentException("invalid key? " + ike.getMessage());
}
}

View File

@ -493,7 +493,7 @@ riCe6OlAEiNpcc6mMyIYYWFICbrDFTrDR3wXqwc/Jkcx6L5VVWoagpSzbo3yGhc=
return new String(data, "UTF-8");
} catch (UnsupportedEncodingException uee) {
throw new RuntimeException("wtf, your JVM doesnt support utf-8? " + uee.getMessage());
throw new RuntimeException("your JVM doesnt support utf-8? " + uee.getMessage());
} catch (IOException ioe) {
return "";
} finally {
@ -532,7 +532,7 @@ riCe6OlAEiNpcc6mMyIYYWFICbrDFTrDR3wXqwc/Jkcx6L5VVWoagpSzbo3yGhc=
return new String(data, "UTF-8");
} catch (UnsupportedEncodingException uee) {
throw new RuntimeException("wtf, your JVM doesnt support utf-8? " + uee.getMessage());
throw new RuntimeException("your JVM doesnt support utf-8? " + uee.getMessage());
} catch (IOException ioe) {
return "";
} finally {
@ -746,7 +746,7 @@ riCe6OlAEiNpcc6mMyIYYWFICbrDFTrDR3wXqwc/Jkcx6L5VVWoagpSzbo3yGhc=
try {
versionRawBytes = version.getBytes("UTF-8");
} catch (UnsupportedEncodingException e) {
throw new RuntimeException("wtf, your JVM doesnt support utf-8? " + e.getMessage());
throw new RuntimeException("your JVM doesnt support utf-8? " + e.getMessage());
}
System.arraycopy(versionRawBytes, 0, versionHeader, 0, versionRawBytes.length);

View File

@ -661,7 +661,7 @@ public class DataHelper {
}
if (rv < 0)
throw new DataFormatException("wtf, fromLong got a negative? " + rv + " numBytes=" + numBytes);
throw new DataFormatException("fromLong got a negative? " + rv + " numBytes=" + numBytes);
return rv;
}
@ -753,7 +753,7 @@ public class DataHelper {
rv |= src[i] & 0xFF;
}
if (rv < 0)
throw new IllegalArgumentException("wtf, fromLong got a negative? " + rv + ": offset="+ offset +" numBytes="+numBytes);
throw new IllegalArgumentException("fromLong got a negative? " + rv + ": offset="+ offset +" numBytes="+numBytes);
return rv;
}
@ -774,7 +774,7 @@ public class DataHelper {
rv |= src[i] & 0xFF;
}
if (rv < 0)
throw new IllegalArgumentException("wtf, fromLong got a negative? " + rv + ": offset="+ offset +" numBytes="+numBytes);
throw new IllegalArgumentException("fromLong got a negative? " + rv + ": offset="+ offset +" numBytes="+numBytes);
return rv;
}

View File

@ -155,7 +155,7 @@ public class SessionConfig extends DataStructureImpl {
}
byte data[] = getBytes();
if (data == null) {
//if (_log.shouldLog(Log.WARN)) _log.warn("Bytes could not be found - wtf?");
//if (_log.shouldLog(Log.WARN)) _log.warn("Bytes could not be found");
return false;
}

View File

@ -432,12 +432,12 @@ public class KBucketSet<T extends SimpleDataStructure> {
if (rv >= 0) {
return rv;
}
_log.error("Key does not fit in any bucket?! WTF!\nKey : ["
_log.error("Key does not fit in any bucket?!\nKey : ["
+ DataHelper.toHexString(key.getData()) + "]"
+ "\nUs : " + _us
+ "\nDelta: ["
+ DataHelper.toHexString(DataHelper.xor(_us.getData(), key.getData()))
+ "]", new Exception("WTF"));
+ "]", new Exception("???"));
_log.error(toString());
throw new IllegalStateException("pickBucket returned " + rv);
//return -1;
@ -588,7 +588,7 @@ public class KBucketSet<T extends SimpleDataStructure> {
} else {
// dont span main bucket boundaries with depth > 1
if (fixed > 0)
throw new IllegalStateException("WTF " + bucket);
throw new IllegalStateException("??? " + bucket);
BigInteger nonz;
if (numNonZero <= 62) {
// add one to ensure nonzero

View File

@ -39,7 +39,7 @@ class Executor implements Runnable {
}
long time = _context.clock().now() - before;
if ( (time > 1000) && (_log.shouldLog(Log.WARN)) )
_log.warn("wtf, event execution took " + time + ": " + evt);
_log.warn("event execution took " + time + ": " + evt);
}
}
}

View File

@ -74,7 +74,7 @@ public class FortunaRandomSource extends RandomSource implements EntropyHarveste
* According to the java docs (http://java.sun.com/j2se/1.4.1/docs/api/java/util/Random.html#nextInt(int))
* nextInt(n) should return a number between 0 and n (including 0 and excluding n). However, their pseudocode,
* as well as sun's, kaffe's, and classpath's implementation INCLUDES NEGATIVE VALUES.
* WTF. Ok, so we're going to have it return between 0 and n (including 0, excluding n), since
* Ok, so we're going to have it return between 0 and n (including 0, excluding n), since
* thats what it has been used for.
*
*/

View File

@ -58,7 +58,7 @@ public class RandomSource extends SecureRandom implements EntropyHarvester {
* According to the java docs (http://java.sun.com/j2se/1.4.1/docs/api/java/util/Random.html#nextInt(int))
* nextInt(n) should return a number between 0 and n (including 0 and excluding n). However, their pseudocode,
* as well as sun's, kaffe's, and classpath's implementation INCLUDES NEGATIVE VALUES.
* WTF. Ok, so we're going to have it return between 0 and n (including 0, excluding n), since
* Ok, so we're going to have it return between 0 and n (including 0, excluding n), since
* thats what it has been used for.
*
* This code unused, see FortunaRandomSource override

View File

@ -403,10 +403,10 @@ public class ResettableGZIPInputStream extends InflaterInputStream {
throw new RuntimeException("read=" + read + " expected " + orig.length);
for (int j = 0; j < read; j++) {
if (readBuf[j] != orig[j])
throw new RuntimeException("wtf, j=" + j + " readBuf=" + readBuf[j] + " orig=" + orig[j]);
throw new RuntimeException("j=" + j + " readBuf=" + readBuf[j] + " orig=" + orig[j]);
}
boolean ok = (-1 == i.read());
if (!ok) throw new RuntimeException("wtf, not EOF after the data?");
if (!ok) throw new RuntimeException("not EOF after the data?");
//System.out.println("Match ok");
// try both closing and not
if ((k % 2) != 0)

View File

@ -170,9 +170,9 @@ public class SimpleScheduler {
_log.debug("Running: " + _timedEvent);
long before = System.currentTimeMillis();
if (_log.shouldLog(Log.WARN) && before < _scheduled - 100)
_log.warn(_name + " wtf, early execution " + (_scheduled - before) + ": " + _timedEvent);
_log.warn(_name + " early execution " + (_scheduled - before) + ": " + _timedEvent);
else if (_log.shouldLog(Log.WARN) && before > _scheduled + 1000)
_log.warn(" wtf, late execution " + (before - _scheduled) + ": " + _timedEvent + debug());
_log.warn("late execution " + (before - _scheduled) + ": " + _timedEvent + debug());
try {
_timedEvent.timeReached();
} catch (Throwable t) {
@ -180,7 +180,7 @@ public class SimpleScheduler {
}
long time = System.currentTimeMillis() - before;
if (time > 1000 && _log.shouldLog(Log.WARN))
_log.warn(_name + " wtf, event execution took " + time + ": " + _timedEvent);
_log.warn(_name + " event execution took " + time + ": " + _timedEvent);
if (_log.shouldLog(Log.INFO)) {
// this call is slow - iterates through a HashMap -
// would be better to have a local AtomicLong if we care

View File

@ -173,7 +173,7 @@ public class BSkipLevels<K extends Comparable<? super K>, V> extends SkipLevels<
// TODO also check that the level[] array is not out-of-order
} else {
if (bf.log.shouldLog(Log.WARN))
bf.log.warn("WTF " + this + " i = " + i + " of " +
bf.log.warn(this + " i = " + i + " of " +
lps.length + " / " + levels.length +
" valid levels but page is zero");
levels[i] = null;

View File

@ -202,11 +202,11 @@ public class SkipLevels<K extends Comparable<? super K>, V> implements Flushable
if((bottom.nKeys == 0) && (sl.first != bottom)) {
// from debugging other problems
if (res == null) {
_log.warn("WTF killing with no return value " + print());
_log.warn("killing with no return value " + print());
} else if (res[1] == null) {
_log.warn("WTF killing with no return value 1 " + print());
_log.warn("killing with no return value 1 " + print());
} else if (res[1] != this) {
_log.warn("WTF killing with return value not us " + res[1] + ' ' + print());
_log.warn("killing with return value not us " + res[1] + ' ' + print());
}
this.killInstance();
}