Take Care
Although it seems to be very easy to change a method name, code can be broken if refactoring tools (built into many modern IDE's) are not used to also change all code that refers to the existing method.
If a codebase has provided an external API that including the existing method name then the existing function should not be removed, but 'deprecated' over time and finally removed at a future date. In this case the "Copy Method" refactoring can be considered as an alternative.
- Java 5.0 provides the annotation @Override to help protect against mistakes such as this.
Read more about this topic: Rename Method
Famous quotes containing the word care:
“Many young girls are ... becoming trained nurses, whose gentle ministrations in the sick-room, skilled touch, patient watchfulness and unwearied vigils, are as great factors in the care of the sick, as are the professional physicians.”
—Lydia Hoyt Farmer (18421903)
“I am not going to have 2,000 condoms hanging in my window. I dont care what it represents.”
—Sharon Zuckerbrod, U.S. business executive. As quoted in Newsweek magazine, p. 23 (November 20, 1989)