From 39c516f3b96a0a9bfe987d0f6710bdc1376c1d67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Wed, 25 Jul 2012 17:00:47 +0300 Subject: [PATCH] Add missing Java 6 @Override annotations --- .../tests/components/popupview/PopupViewClickShortcut.java | 1 + .../vaadin/tests/integration/JSR286PortletApplication.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/tests/testbench/com/vaadin/tests/components/popupview/PopupViewClickShortcut.java b/tests/testbench/com/vaadin/tests/components/popupview/PopupViewClickShortcut.java index 7009d03f77..47c97bbc21 100644 --- a/tests/testbench/com/vaadin/tests/components/popupview/PopupViewClickShortcut.java +++ b/tests/testbench/com/vaadin/tests/components/popupview/PopupViewClickShortcut.java @@ -48,6 +48,7 @@ public class PopupViewClickShortcut extends TestBase { Button b = new Button("Submit " + caption, new Button.ClickListener() { private int i = 5; + @Override public void buttonClick(ClickEvent event) { log.log("Submitted from " + event.getButton().getParent().getCaption()); diff --git a/tests/testbench/com/vaadin/tests/integration/JSR286PortletApplication.java b/tests/testbench/com/vaadin/tests/integration/JSR286PortletApplication.java index 7ba6f2c0c0..f0ed0f79cb 100644 --- a/tests/testbench/com/vaadin/tests/integration/JSR286PortletApplication.java +++ b/tests/testbench/com/vaadin/tests/integration/JSR286PortletApplication.java @@ -73,6 +73,7 @@ public class JSR286PortletApplication extends Application.LegacyApplication { Upload upload = new Upload("Upload a file", new Receiver() { + @Override public OutputStream receiveUpload(String filename, String mimeType) { return new ByteArrayOutputStream(); } @@ -91,11 +92,13 @@ public class JSR286PortletApplication extends Application.LegacyApplication { private class DemoPortletListener implements PortletListener { + @Override public void handleActionRequest(ActionRequest request, ActionResponse response, Root window) { main.addComponent(new Label("Action received")); } + @Override public void handleRenderRequest(RenderRequest request, RenderResponse response, Root window) { // Portlet up-and-running, enable stuff @@ -169,11 +172,13 @@ public class JSR286PortletApplication extends Application.LegacyApplication { } } + @Override public void handleEventRequest(EventRequest request, EventResponse response, Root window) { // events not used by this test } + @Override public void handleResourceRequest(ResourceRequest request, ResourceResponse response, Root window) { // nothing special to do here -- 2.39.5