Fix return types of getJSONObject and optJSONObject in CordovaArgs

This commit is contained in:
Braden Shepherdson 2013-02-21 15:53:15 -05:00
parent 17b668a115
commit e2dadbd7fe

View File

@ -20,6 +20,7 @@ package org.apache.cordova;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject;
import android.util.Base64; import android.util.Base64;
@ -52,7 +53,7 @@ public class CordovaArgs {
return baseArgs.getJSONArray(index); return baseArgs.getJSONArray(index);
} }
public Object getJSONObject(int index) throws JSONException { public JSONObject getJSONObject(int index) throws JSONException {
return baseArgs.getJSONObject(index); return baseArgs.getJSONObject(index);
} }
@ -85,7 +86,7 @@ public class CordovaArgs {
return baseArgs.optJSONArray(index); return baseArgs.optJSONArray(index);
} }
public Object optJSONObject(int index) { public JSONObject optJSONObject(int index) {
return baseArgs.optJSONObject(index); return baseArgs.optJSONObject(index);
} }