When I reformat code with Eclipse, it turns method headers like this:
public void myMethod(String param) {
into method headers like this:>
In eclipse you can define your code formatting use Code Style ,
for MAC System :--> Eclipse --> Preference -- > java--> code Style
for Window System :--> Window->Preferences->Java->Code Style->Formatter