You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2014/01/22 20:38:34 UTC
[23/50] [abbrv] git commit: CB-5471: add deprecation
javadoc/annotation
CB-5471: add deprecation javadoc/annotation
Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/228a9009
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/228a9009
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/228a9009
Branch: refs/heads/master
Commit: 228a9009fceae3c951f0a804a132329cfcd6eb81
Parents: eb0aa97
Author: Marcel Kinard <cm...@gmail.com>
Authored: Tue Nov 26 12:05:23 2013 -0500
Committer: Joe Bowser <bo...@apache.org>
Committed: Wed Jan 22 11:37:17 2014 -0800
----------------------------------------------------------------------
.../src/org/apache/cordova/CordovaActivity.java | 16 ++++++++++++++++
framework/src/org/apache/cordova/DroidGap.java | 12 ++++++++++--
2 files changed, 26 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/228a9009/framework/src/org/apache/cordova/CordovaActivity.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaActivity.java b/framework/src/org/apache/cordova/CordovaActivity.java
index 897b54e..f369b77 100755
--- a/framework/src/org/apache/cordova/CordovaActivity.java
+++ b/framework/src/org/apache/cordova/CordovaActivity.java
@@ -697,10 +697,14 @@ public class CordovaActivity extends Activity implements CordovaInterface {
/**
* Set boolean property on activity.
+ * This method has been deprecated in 3.0 and will be removed at a future
+ * time. Please use config.xml instead.
*
* @param name
* @param value
+ * @deprecated
*/
+ @Deprecated
public void setBooleanProperty(String name, boolean value) {
Log.d(TAG, "Setting boolean properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml");
this.getIntent().putExtra(name.toLowerCase(), value);
@@ -708,10 +712,14 @@ public class CordovaActivity extends Activity implements CordovaInterface {
/**
* Set int property on activity.
+ * This method has been deprecated in 3.0 and will be removed at a future
+ * time. Please use config.xml instead.
*
* @param name
* @param value
+ * @deprecated
*/
+ @Deprecated
public void setIntegerProperty(String name, int value) {
Log.d(TAG, "Setting integer properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml");
this.getIntent().putExtra(name.toLowerCase(), value);
@@ -719,10 +727,14 @@ public class CordovaActivity extends Activity implements CordovaInterface {
/**
* Set string property on activity.
+ * This method has been deprecated in 3.0 and will be removed at a future
+ * time. Please use config.xml instead.
*
* @param name
* @param value
+ * @deprecated
*/
+ @Deprecated
public void setStringProperty(String name, String value) {
Log.d(TAG, "Setting string properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml");
this.getIntent().putExtra(name.toLowerCase(), value);
@@ -730,10 +742,14 @@ public class CordovaActivity extends Activity implements CordovaInterface {
/**
* Set double property on activity.
+ * This method has been deprecated in 3.0 and will be removed at a future
+ * time. Please use config.xml instead.
*
* @param name
* @param value
+ * @deprecated
*/
+ @Deprecated
public void setDoubleProperty(String name, double value) {
Log.d(TAG, "Setting double properties in CordovaActivity will be deprecated in 3.0 on July 2013, please use config.xml");
this.getIntent().putExtra(name.toLowerCase(), value);
http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/228a9009/framework/src/org/apache/cordova/DroidGap.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/DroidGap.java b/framework/src/org/apache/cordova/DroidGap.java
index fbaf6c4..d72d2a4 100644
--- a/framework/src/org/apache/cordova/DroidGap.java
+++ b/framework/src/org/apache/cordova/DroidGap.java
@@ -17,10 +17,18 @@
under the License.
*/
-// We moved everything to CordovaActivity
-
package org.apache.cordova;
+/**
+ * This used to be the class that should be extended by application
+ * developers, but everything has been moved to CordovaActivity. So
+ * you should extend CordovaActivity instead of DroidGap. This class
+ * will be removed at a future time.
+ *
+ * @see CordovaActivity
+ * @deprecated
+ */
+@Deprecated
public class DroidGap extends CordovaActivity {
}