Skip to contentSkip to conversation

Keep execute() method signature

PATCH New Ioana Grigoropol 1 participant 1 message May 10, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Keep execute() method signature

- DialogHandler inherits from IHandler the execute method that has the following signature

Object execute(ExecutionEvent event) throws ExecutionException;

- overriding it with void return type results in a compilation error

---
 .../sdk/remotetools/actions/DialogHandler.java     |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/actions/DialogHandler.java +2 -1
index 67d33ba..abb2257 100644
@@ -29,12 +29,13 @@ abstract public class DialogHandler extends TerminalHandler {
 	}
 
 	@Override
-	public void execute(ExecutionEvent event) throws ExecutionException {
+	public Object execute(ExecutionEvent event) throws ExecutionException {
 		initialize(event);
 
 		if(setting.open() == BaseSettingDialog.OK) {
 			IHost currentHost = setting.getHost();
 			execute(currentHost);
 		}
+		return null;
 	}
 }
Signature · 1 line
1.7.9.5