Reorder method to avoid checkstyle warning.
Patch by: jat
Unreviewed
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@5284 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/jsonp/client/JsonpRequest.java b/user/src/com/google/gwt/jsonp/client/JsonpRequest.java
index 9b3acba..2482c17 100644
--- a/user/src/com/google/gwt/jsonp/client/JsonpRequest.java
+++ b/user/src/com/google/gwt/jsonp/client/JsonpRequest.java
@@ -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
*/
@@ -72,16 +82,6 @@
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.
*
* @param callback The callback instance to notify when the response comes