Replace Method With Method Object

You have a long method that uses local variables in such a way that you cannot apply extract method.

Turn the method into its own object so that all the local variables become fields that object.

You can then decompose the method into other methods on the same object.

你可能感兴趣的:(replace)