Archive for the ‘fun with code’ Category
Checkstyle error: Uncommented main method found…
Wednesday, May 14th, 2008
Posted in: fun with code, java.
Just for the record: The checkstyle error Uncommented main method found does NOT mean the main method lacks a javadoc comment, but that the main method is not commented out. Checkstyle regards main methods as useless “debugging” leftovers.
//CHECKSTYLE:OFF and //CHECKSTYLE:ON helped me out. And yes, i think this particular check is really, really, really useless. I think someone using arbitrary main methods in sourcecode for debugging purposes is hardly going to know of checkstyle’s existence anyway…
Evolutionäre Softwareentwicklung vs. Kreationismus
Thursday, January 17th, 2008
Posted in: fun with code, java.
package java.lang;
/**
* Class <code>Object</code> is the root of the class hierarchy.
* Every class has <code>Object</code> as a superclass. All objects,
* including arrays, implement the methods of this class.
*
* @author God
* @see Bible
* @since The beginning
*/
public class Object {
private static native void registerNatives();
...
Hmmm. Ich weis nicht.
No Comments