[Facade]Update Deprecated method's @Deprecated string.
The previous style of deprecation using @RpcDeprecated does
not seem to work. Changing to standard Java style.
Bug: 36105426
Test: Tested locally
Change-Id: Ibc6f26ffa2b14746737b2a5c77fe4865d60cd013
diff --git a/Common/src/com/googlecode/android_scripting/facade/wifi/WifiManagerFacade.java b/Common/src/com/googlecode/android_scripting/facade/wifi/WifiManagerFacade.java
index 76b99b0..6008a3d 100755
--- a/Common/src/com/googlecode/android_scripting/facade/wifi/WifiManagerFacade.java
+++ b/Common/src/com/googlecode/android_scripting/facade/wifi/WifiManagerFacade.java
@@ -517,8 +517,11 @@
return mWifi.getWifiState() == WifiManager.WIFI_STATE_ENABLED;
}
- @RpcDeprecated(value = "wifiConnectByConfig")
+ /**
+ * @deprecated Use {@link #wifiConnectByConfig(config)} instead.
+ */
@Rpc(description = "Connects to the network with the given configuration")
+ @Deprecated
public Boolean wifiConnect(@RpcParameter(name = "config") JSONObject config)
throws JSONException {
try {
@@ -531,8 +534,11 @@
return true;
}
- @RpcDeprecated(value = "wifiConnectByConfig")
- @Rpc(description = "Connect to Enterprise network with given configuration")
+ /**
+ * @deprecated Use {@link #wifiConnectByConfig(config)} instead.
+ */
+ @Rpc(description = "Connects to the network with the given configuration")
+ @Deprecated
public Boolean wifiEnterpriseConnect(@RpcParameter(name = "config")
JSONObject config) throws JSONException, GeneralSecurityException {
try {