아름프로 2003. 8. 2. 13:14

Inline Temp



You have a temp that is assigned to once with a simple expression, and the temp is getting in the way of other refactorings.

Replace all references to that temp with the expression.

                double basePrice = anOrder.basePrice();
                return (basePrice > 1000)

                return (anOrder.basePrice() > 1000)

For more information see page 119 of Refactoring




***** 아름다운프로님에 의해서 게시물 복사 + 카테고리변경되었습니다 (2003-12-18 17:27)