Bug 28942 "Extract method" refactoring error [refactoring]
When using the "extract method" refactoring, there seems to be a bug with the return statements if the return type is void. When extracting the following code for example: if (error == true) return; doSomething(); He complaints that not all execution paths contain a return statement. This is not necessary as the return type is void.
org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/return_out/A_test700.java
package return_out;
public class A_test700 {
	public void foo() {
		extracted();
		return;
	}
	protected void extracted() {
		return;
	}
}