1. A method of renaming identifiers of a computer program independent of compiling or executing the computer program, the method comprising: generating a class inheritance hierarchy of the computer program such that naming dependencies among methods of the computer program are identified; generating method lists for each leaf class of the class inheritance hierarchy, wherein each method list includes non-inherited methods of the leaf class and inherited methods of the leaf class; adding default methods of superclasses having different package names to the method lists of each leaf class; replacing consistently original method names of the inherited methods of each method list with corresponding different method names; replacing consistently original method names of overridden methods of the each method list with corresponding different method names; and replacing original method names of remaining non-renamed methods of each class of the computer program with corresponding different method names.
1. A method of renaming identifiers of a computer program independent of compiling or executing the computer program, the method comprising: generating a class inheritance hierarchy of the computer program such that naming dependencies among methods of the computer program are identified; generating method lists for each leaf class of the class inheritance hierarchy, wherein each method list includes non-inherited methods of the leaf class and inherited methods of the leaf class; adding default methods of superclasses having different package names to the method lists of each leaf class; replacing consistently original method names of the inherited methods of each method list with corresponding different method names; replacing consistently original method names of overridden methods of the each method list with corresponding different method names; and replacing original method names of remaining non-renamed methods of each class of the computer program with corresponding different method names. 2. The method described in claim 1 including renaming classes of the computer program with corresponding different class names, wherein the renaming the classes comprises: identifying original class names of the classes of the computer program; and replacing the original class names with the corresponding different class names.