Rename Method - Take Care

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:

    ... the more we recruit from immigrants who bring no personal traditions with them, the more America is going to ignore the things of the spirit. No one whose consuming desire is either for food or for motor-cars is going to care about culture, or even know what it is.
    Katharine Fullerton Gerould (1879–1944)

    Part of the pain in leaving our children to go to work is that we miss them, wish we could be with them. We also hate to turn them over to someone who is not identical to us, who will do things, at best, differently—at worst, in ways we don’t believe are good for children. We are up against this whenever we share the care of our children with others—even grandparents or trusted and loved ones.
    Joan Sheingold Ditzion (20th century)