java - Autogenerate method response in Eclipse -


consider following snippet of code

private myoutputobject createmyoutputobject(myinputobject myinputobject) {  } 

to rid of eclipse's "must return result of type..." compiler error alert, add following:

private myoutputobject createmyoutputobject(myinputobject myinputobject) {     myoutputobject myoutputobject = null;     return myoutputobject; } 

is there way within eclipse autogenerate response creation?

in eclipse if go preferences > java > code style > code templates see list of code templates. under code go method body , can modify generated code.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -