Refactoring methods with multiple exit points

已回答

trying the new intention "Transform body to single exit-point form" on this method:

This is the result after applying inspection rule:

 

I think it would have been better refactored to this:

 

Other then that, the empty line after "if (finished) {" should be probably removed

Awesome feature btw..

0

Hello Mauro,

Feel  free to create feature request on YouTrack: http://youtrack.jetbrains.com/issues/IDEA.

So developers and other users could discuss it.

0

请先登录再写评论。