Community
Participate
Working Groups
20020502 package p; class S{ void f(int y){ /*[*/if (y == 0) return; f(3);/*]*/ f(4); } } contrary to what the error message says all execution branches in the selected fragment do end with a return (the last is implicit) and it would be possible to extract a method here. the method 'f' being void is important - only then is the implicit return added
defer
[refactoring] Consider for 2.1
This can't be allowed. Extracted the code into a method would change execution flow since the new code would always execute f(4);.