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 --- server/src/com/vaadin/ui/JavaScriptFunction.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'server/src/com/vaadin/ui/JavaScriptFunction.java') diff --git a/server/src/com/vaadin/ui/JavaScriptFunction.java b/server/src/com/vaadin/ui/JavaScriptFunction.java index 2c026abd1a..c006a36d58 100644 --- a/server/src/com/vaadin/ui/JavaScriptFunction.java +++ b/server/src/com/vaadin/ui/JavaScriptFunction.java @@ -18,14 +18,12 @@ package com.vaadin.ui; import java.io.Serializable; -import org.json.JSONArray; -import org.json.JSONException; - import com.vaadin.server.AbstractJavaScriptExtension; +import elemental.json.JsonArray; /** * Defines a method that is called by a client-side JavaScript function. When - * the corresponding JavaScript function is called, the {@link #call(JSONArray)} + * the corresponding JavaScript function is called, the {@link #call(JsonArray)} * method is invoked. * * @see JavaScript#addFunction(String, JavaScriptCallback) @@ -46,8 +44,6 @@ public interface JavaScriptFunction extends Serializable { * @param arguments * an array with JSON representations of the arguments with which * the JavaScript function was called. - * @throws JSONException - * if the arguments can not be interpreted */ - public void call(JSONArray arguments) throws JSONException; + public void call(JsonArray arguments); } -- cgit v1.2.3