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:
“Alas, why would you heap this care on me?
I am unfit for state and majesty.
I do beseech you take it not amiss,
I cannot nor I will not yield to you.”
—William Shakespeare (15641616)
“Coming together again after a long day apart can be an experience where joy, relief, anger, and fatigue are all present in different degrees both for the parent and for the child. Because of their importance in marking the resumption of direct contact, reunions deserve as much attention and care as separations to enhance the relationship between parent and child.”
—Alicia F. Lieberman (20th century)