cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bra...@apache.org
Subject android commit: Fix return types of getJSONObject and optJSONObject in CordovaArgs
Date Thu, 21 Feb 2013 20:53:40 GMT
Updated Branches:
  refs/heads/master 17b668a11 -> e2dadbd7f


Fix return types of getJSONObject and optJSONObject in CordovaArgs


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/e2dadbd7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/e2dadbd7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/e2dadbd7

Branch: refs/heads/master
Commit: e2dadbd7febe374f907f636076370ef4e5fe5af9
Parents: 17b668a
Author: Braden Shepherdson <braden.shepherdson@gmail.com>
Authored: Thu Feb 21 15:53:15 2013 -0500
Committer: Braden Shepherdson <braden.shepherdson@gmail.com>
Committed: Thu Feb 21 15:53:15 2013 -0500

----------------------------------------------------------------------
 framework/src/org/apache/cordova/CordovaArgs.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/e2dadbd7/framework/src/org/apache/cordova/CordovaArgs.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaArgs.java b/framework/src/org/apache/cordova/CordovaArgs.java
index 3a8b7c0..d40d26e 100644
--- a/framework/src/org/apache/cordova/CordovaArgs.java
+++ b/framework/src/org/apache/cordova/CordovaArgs.java
@@ -20,6 +20,7 @@ package org.apache.cordova;
 
 import org.json.JSONArray;
 import org.json.JSONException;
+import org.json.JSONObject;
 
 import android.util.Base64;
 
@@ -52,7 +53,7 @@ public class CordovaArgs {
         return baseArgs.getJSONArray(index);
     }
 
-    public Object getJSONObject(int index) throws JSONException {
+    public JSONObject getJSONObject(int index) throws JSONException {
         return baseArgs.getJSONObject(index);
     }
 
@@ -85,7 +86,7 @@ public class CordovaArgs {
         return baseArgs.optJSONArray(index);
     }
 
-    public Object optJSONObject(int index) {
+    public JSONObject optJSONObject(int index) {
         return baseArgs.optJSONObject(index);
     }
 


Mime
View raw message