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:
“Each mans private conscience ought to be a nice little self-registering thermometer: he ought to carry his moral code incorruptibly and explicitly within himself, and not care what the world thinks. The mass of human beings, however, are not made that way; and many people have been saved from crime or sin by the simple dislike of doing things they would not like to confess ...”
—Katharine Fullerton Gerould (18791944)
“I do not care for such speech in the midst of ills; harsh words, even when just, still sting.”
—Sophocles (497406/5 B.C.)