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:
“We are not a religious people, but we are a nation of politicians. We do not care for the Bible, but we do care for the newspaper. At any meeting of politicians ... how impertinent it would be to quote from the Bible! how pertinent to quote from a newspaper or from the Constitution!”
—Henry David Thoreau (18171862)
“How a child is taught affects his image of himself, which in turn, influences what he will dare and care to try to learn. The interdependence of the two is inescapable.”
—Barbara Biber (20th century)