You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by de...@apache.org on 2012/05/24 16:27:06 UTC

[2/3] webworks commit: [CB-793] Minor formatting cleanup.

[CB-793] Minor formatting cleanup.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/commit/9311f2e2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/tree/9311f2e2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/diff/9311f2e2

Branch: refs/heads/master
Commit: 9311f2e242354377a3bea43b04067e22a818eb45
Parents: 125cc6c
Author: Drew Walters <de...@apache.org>
Authored: Thu May 24 09:26:07 2012 -0500
Committer: Drew Walters <de...@apache.org>
Committed: Thu May 24 09:26:07 2012 -0500

----------------------------------------------------------------------
 .../src/org/apache/cordova/http/FileTransfer.java  |   38 ++++++++-------
 1 files changed, 20 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/9311f2e2/framework/ext/src/org/apache/cordova/http/FileTransfer.java
----------------------------------------------------------------------
diff --git a/framework/ext/src/org/apache/cordova/http/FileTransfer.java b/framework/ext/src/org/apache/cordova/http/FileTransfer.java
index 800193f..14ba854 100644
--- a/framework/ext/src/org/apache/cordova/http/FileTransfer.java
+++ b/framework/ext/src/org/apache/cordova/http/FileTransfer.java
@@ -173,8 +173,9 @@ public class FileTransfer extends Plugin {
      * @return JSONObject containing the error
      */
     private JSONObject createFileTransferError(int errorCode, String source,
-                                               String target) {
-        return createFileTransferError(errorCode, source, target, (Integer)null);
+            String target) {
+        return createFileTransferError(errorCode, source, target,
+                (Integer) null);
     }
 
     /**
@@ -185,7 +186,7 @@ public class FileTransfer extends Plugin {
      * @return JSONObject containing the error
      */
     private JSONObject createFileTransferError(int errorCode, String source,
-                                               String target, FileUploader fileUploader) {
+            String target, FileUploader fileUploader) {
 
         Integer httpStatus = null;
 
@@ -195,15 +196,15 @@ public class FileTransfer extends Plugin {
         return createFileTransferError(errorCode, source, target, httpStatus);
     }
 
-        /**
-        * Create an error object based on the passed in errorCode
-        *
-        * @param errorCode
-        *            the error
-        * @return JSONObject containing the error
-        */
+    /**
+     * Create an error object based on the passed in errorCode
+     *
+     * @param errorCode
+     *            the error
+     * @return JSONObject containing the error
+     */
     private JSONObject createFileTransferError(int errorCode, String source,
-                                               String target, HttpConnection connection) {
+            String target, HttpConnection connection) {
 
         Integer httpStatus = null;
 
@@ -211,7 +212,8 @@ public class FileTransfer extends Plugin {
             try {
                 httpStatus = new Integer(connection.getResponseCode());
             } catch (IOException e) {
-                Logger.log(LOG_TAG + " exception getting http response code " + e.toString());
+                Logger.log(LOG_TAG + " exception getting http response code "
+                        + e.toString());
             }
         }
 
@@ -219,12 +221,12 @@ public class FileTransfer extends Plugin {
     }
 
     /**
-        * Create an error object based on the passed in errorCode
-        *
-        * @param errorCode
-        *            the error
-        * @return JSONObject containing the error
-        */
+     * Create an error object based on the passed in errorCode
+     *
+     * @param errorCode
+     *            the error
+     * @return JSONObject containing the error
+     */
     private JSONObject createFileTransferError(int errorCode, String source,
             String target, Integer httpStatus) {
         JSONObject error = null;