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:

    I don’t stay out late, don’t care to go,
    I’m home about eight, just me and my radio.
    Andy Razaf (1895–1993)

    I don’t mind their having a lot of money, and I don’t care how they employ it,
    But I do think that they damn well ought to admit they enjoy it.
    Ogden Nash (1902–1971)