jdt-codemining icon indicating copy to clipboard operation
jdt-codemining copied to clipboard

Allow static methods without params to be executed

Open sirolf2009 opened this issue 6 years ago • 1 comments

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();
}

sirolf2009 avatar Oct 09 '18 13:10 sirolf2009

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.

angelozerr avatar Oct 09 '18 13:10 angelozerr