Tuesday, March 13, 2007

wtf

The code snippet from former coworker of mine. There are about dozen things like that:
if (System.getProperty("time.to.sleep").equals("null")) {
timeToThreadSleep = prefs.getLong(TAG_SLEEP, timeToThreadSleep);
System.out.println("....p: " + timeToThreadSleep + " millis" + " \t");
} else {
timeToThreadSleep = new Integer(System.getProperty("time.to.sleep")).intValue();
System.out.println("...p: " + timeToThreadSleep + " millis" + " \t");
}

No comments:

Post a Comment