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/invalidSelection/A_test192.java
package invalidSelection;
public class A_test192 {
	public void foo() {
		Object runnable= null;
		Object[] disposeList= null;
		for (int i=0; i < disposeList.length; i++) {
			if (disposeList [i] == null) {
				disposeList [i] = runnable;
				return;
			}
		}
	}
}