From fed1ede816404dbd3e739279ec65c60877036ad4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Carrasco=20Mo=C3=B1ino?= Date: Wed, 10 Apr 2013 08:45:45 +0200 Subject: [PATCH] Fix casting exception --- .../java/com/google/gwt/query/client/plugins/ajax/Ajax.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java index 6f094d5e..8bbd2def 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/ajax/Ajax.java @@ -13,7 +13,6 @@ import com.google.gwt.query.client.Properties; import com.google.gwt.query.client.builders.JsonBuilder; import com.google.gwt.query.client.js.JsUtils; import com.google.gwt.query.client.plugins.Plugin; -import com.google.gwt.query.client.plugins.deferred.Deferred; import com.google.gwt.query.client.plugins.deferred.PromiseReqBuilder; import com.google.gwt.query.client.plugins.deferred.PromiseReqBuilderJSONP; import com.google.gwt.user.client.ui.FormPanel; @@ -106,7 +105,6 @@ public class Ajax extends GQuery { * @param settings a Properties object with the configuration of the Ajax request. */ public static Promise ajax(Settings settings) { - final Deferred dfd = $().as(Deferred.Deferred); final Function onSuccess = settings.getSuccess(); if (onSuccess != null) { @@ -150,7 +148,7 @@ public class Ajax extends GQuery { }, new Function() { public Object f(Object...args) { Throwable exception = (Throwable)args[0]; - Response request = (Response)args[1]; + Request request = (Request)args[1]; return new Object[]{null, exception.getMessage(), request, null, exception}; } }) -- 2.39.5