From f2551a9fc03636deb5fcd3f30c761dca946c8341 Mon Sep 17 00:00:00 2001 From: Taras Hupalo Date: Tue, 12 Aug 2014 15:28:41 +0300 Subject: replaced all org.json.* usages with elemental.json.* (#8942) Change-Id: I4809fbbdb48f3e36c8e1da8552ff3fa734714105 --- uitest/src/com/vaadin/tests/push/TrackMessageSizeUI.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'uitest/src/com/vaadin/tests/push') diff --git a/uitest/src/com/vaadin/tests/push/TrackMessageSizeUI.java b/uitest/src/com/vaadin/tests/push/TrackMessageSizeUI.java index 6e2784f21d..e7a74775bf 100644 --- a/uitest/src/com/vaadin/tests/push/TrackMessageSizeUI.java +++ b/uitest/src/com/vaadin/tests/push/TrackMessageSizeUI.java @@ -23,8 +23,6 @@ import java.net.URL; import javax.servlet.ServletContext; import org.apache.commons.io.IOUtils; -import org.json.JSONArray; -import org.json.JSONException; import com.vaadin.annotations.JavaScript; import com.vaadin.server.VaadinRequest; @@ -32,6 +30,7 @@ import com.vaadin.server.VaadinService; import com.vaadin.server.VaadinServletService; import com.vaadin.tests.components.AbstractTestUIWithLog; import com.vaadin.ui.JavaScriptFunction; +import elemental.json.JsonArray; // Load vaadinPush.js so that jQueryVaadin is defined @JavaScript("vaadin://vaadinPush.debug.js") @@ -58,7 +57,7 @@ public class TrackMessageSizeUI extends AbstractTestUIWithLog { getPage().getJavaScript().addFunction("logToServer", new JavaScriptFunction() { @Override - public void call(JSONArray arguments) throws JSONException { + public void call(JsonArray arguments) { String message = arguments.getString(0); log(message); } -- cgit v1.2.3