-none- 2007-10-01 - By Zhang, Larry (L.)
Back I have a method having the following structure:
public Object myMethod() { try { // some code return theReturnedObject, }catch{ // some code } finally { // some code } }
Please let me know if the following version of code better than the above? public Object myMethod() { try { // some code }catch{ // some code } finally { // some code }
return theReturnedObject, }
The only difference is that the bottom one put the return down to the bottom of the method and take the return out of the try. Please let me know.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|