Author: [email protected]
Date: Mon Apr 27 08:07:01 2009
New Revision: 5284
Modified:
trunk/user/src/com/google/gwt/jsonp/client/JsonpRequest.java
Log:
Reorder method to avoid checkstyle warning.
Patch by: jat
Unreviewed
Modified: trunk/user/src/com/google/gwt/jsonp/client/JsonpRequest.java
==============================================================================
--- trunk/user/src/com/google/gwt/jsonp/client/JsonpRequest.java
(original)
+++ trunk/user/src/com/google/gwt/jsonp/client/JsonpRequest.java Mon Apr
27
08:07:01 2009
@@ -42,6 +42,16 @@
private static final String CALLBACKS_NAME = "__gwt_jsonp__";
private static final JavaScriptObject CALLBACKS =
createCallbacksObject(CALLBACKS_NAME);
+ /**
+ * Creates a global object to store callbacks of pending requests.
+ *
+ * @param name The name of the global object.
+ * @return The created object.
+ */
+ private static native JavaScriptObject createCallbacksObject(String
name) /*-{
+ return $wnd[name] = new Object();
+ }-*/;
+
private static native Node getDocumentElement() /*-{
return $doc.documentElement;
}-*/;
@@ -49,13 +59,13 @@
private static String nextCallbackId() {
return "I" + (callbackCounter++);
}
-
+
private final String callbackId;
private final int timeout;
-
+
private final AsyncCallback<T> callback;
-
+
/**
* Whether the result is expected to be an integer or not
*/
@@ -70,16 +80,6 @@
* Timer which keeps track of timeouts.
*/
private Timer timer;
-
- /**
- * Creates a global object to store callbacks of pending requests.
- *
- * @param name The name of the global object.
- * @return The created object.
- */
- private static native JavaScriptObject createCallbacksObject(String
name) /*-{
- return $wnd[name] = new Object();
- }-*/;
/**
* Create a new JSONP request.
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---