I see it all the time and can't find a simple description.
If you also don't like the TODO comments you can change the templates via: Window -> Preferences -> Java -> Code Style -> Code Templates. In the code tree you have the templates. Select for example Code → Method Body and press “Edit” to edit this template and to remove the todo comment. I hope this helps.
A method stub is a piece of code used to stand in for some other programming functionality in software development. It may simulate the behavior of an existing piece of code, or stand in for code that has not yet been developed.
You have the option to have Eclipse generate method stubs (a method stub is a method which is defined but has no statements in it, or no functionality) for various types of methods.
It means that your IDE (or some other tool) has automatically generated a method for you, but has left the body blank to be filled in by you (this is known as a "stub").
In your case, it was probably Eclipse.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With