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

Preserve Whole Object


You are getting several values from an object and passing these values as parameters in a method call.

Send the whole object instead.


                int low = daysTempRange().getLow();
                int high = daysTempRange().getHigh();
                withinPlan = plan.withinRange(low, high);
                            


                withinPlan = plan.withinRange(daysTempRange());

For more information see page 288 of Refactoring




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