[yocto] [PATCH] Keep execute() method signature

Ioana Grigoropol ioanax.grigoropol at intel.com
Fri May 10 05:38:22 PDT 2013


- 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

Signed-off-by: Ioana Grigoropol <ioanax.grigoropol at intel.com>
---
 .../sdk/remotetools/actions/DialogHandler.java     |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/actions/DialogHandler.java b/plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/actions/DialogHandler.java
index 67d33ba..abb2257 100644
--- a/plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/actions/DialogHandler.java
+++ b/plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/actions/DialogHandler.java
@@ -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;
 	}
 }
-- 
1.7.9.5




More information about the yocto mailing list