Inline Method

A method's body is just as clear as its name.  

Put the method’s body into the body of its callers and remove the method.

Sample:

BeforeRefactor

AfterRefactor
posted @ 2007-04-20 16:49  南守拥  阅读(197)  评论(0编辑  收藏  举报