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:

    Your child has the capacity to care for more than one person at a time. The affection she feels for her caregiver doesn’t diminish the love she feels for you. Your caregiver isn’t your competition. She is your ally.
    Amy Laura Dombro (20th century)

    Parenthood has really changed for me. It’s much more than taking care of my son; more than saying yes and no. Now I have to figure out what I think and what I know so that I can answer his questions and explain things to him.
    —Anonymous Parent. As quoted in Between Generations by Ellen Galinsky, ch. 4 (1981)