jdt-codemining
jdt-codemining copied to clipboard
Allow static methods without params to be executed
I quite often leave static methods to analyze something related to the class. Normally when I want to execute one, I need to write a main method to actually trigger it. It would be nice if I could trigger them like the main methods. Example:
public class Database {
public Location getLocation();
public static void printLocationQueryTime();
public Graph<Location> buildLocationTree();
public static printBuildLocationTreeQueryTime();
}
To be honnest with you, I find it's a too specific case. But if there are several people who want to have this feature, I could try to implement it.