This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch chore/add-deprecated-annotation
in repository https://gitbox.apache.org/repos/asf/cordova-android.git

commit 7630ca387ccb1b00684afe84a1a39e41b1003152
Author: Erisu <[email protected]>
AuthorDate: Mon Jun 29 15:05:55 2026 +0900

    chore: add missing [at]Deprecated Java annotation
---
 framework/src/org/apache/cordova/PermissionHelper.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/framework/src/org/apache/cordova/PermissionHelper.java 
b/framework/src/org/apache/cordova/PermissionHelper.java
index 90c6e169..c6196797 100644
--- a/framework/src/org/apache/cordova/PermissionHelper.java
+++ b/framework/src/org/apache/cordova/PermissionHelper.java
@@ -38,6 +38,7 @@ import android.content.pm.PackageManager;
  * @deprecated As of cordova-android 5.0.0, this class is no longer needed and 
will be removed in a future release.
  * You can call directly into {@link CordovaInterface} methods instead with 
{@link CordovaPlugin#cordova}.
  */
+@Deprecated
 public class PermissionHelper {
     /**
      * Requests a "dangerous" permission for the application at runtime. This 
is a helper method
@@ -50,6 +51,7 @@ public class PermissionHelper {
      * @param permission    The permission to be requested
      * @deprecated As of cordova-android 5.0.0, use {@link 
CordovaInterface#requestPermission()} instead.
      */
+    @Deprecated
     public static void requestPermission(CordovaPlugin plugin, int 
requestCode, String permission) {
         PermissionHelper.requestPermissions(plugin, requestCode, new String[] 
{permission});
     }
@@ -65,6 +67,7 @@ public class PermissionHelper {
      * @param permissions   The permissions to be requested
      * @deprecated As of cordova-android 5.0.0, use {@link 
CordovaInterface#requestPermissions()} instead.
      */
+    @Deprecated
     public static void requestPermissions(CordovaPlugin plugin, int 
requestCode, String[] permissions) {
         plugin.cordova.requestPermissions(plugin, requestCode, permissions);
     }
@@ -79,6 +82,7 @@ public class PermissionHelper {
      * @return              True if the permission has already been granted 
and false otherwise
      * @deprecated As of cordova-android 5.0.0, use {@link 
CordovaInterface#hasPermission()} instead.
      */
+    @Deprecated
     public static boolean hasPermission(CordovaPlugin plugin, String 
permission) {
         return plugin.cordova.hasPermission(permission);
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to