Keep execute() method signature
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
Signed-off-by Ioana Grigoropol <[email protected]>
--- .../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
@@ -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