Select f() method (Line 63) in class A and perform inline method refactoring. Before the refactoring, m() in class A is called by f() method; when the inline method refactoring is performed, m() in class B is displayed in t(), resulting in changes in code behavior (output a before refactoring, output b after refactoring) , the code before the refactoring is as follows:
The code results after refactoring are as follows:
Select f() method (Line 63) in class A and perform inline method refactoring. Before the refactoring, m() in class A is called by f() method; when the inline method refactoring is performed, m() in class B is displayed in t(), resulting in changes in code behavior (output a before refactoring, output b after refactoring) , the code before the refactoring is as follows:
The code results after refactoring are as follows: