[java] Remove deprecated AppCacheStatus enum from the HTML5 package by iampopovich ยท Pull Request #15973 ยท SeleniumHQ/selenium

User description

๐Ÿ”— Related Issues

partially fixes #10397

๐Ÿ’ฅ What does this PR do?

This pull request removes the AppCacheStatus enum from the Selenium codebase. The enum was deprecated and represented the application cache status, which is no longer relevant due to the deprecation of the AppCache API in modern browsers.

Code removal:

  • java/src/org/openqa/selenium/html5/AppCacheStatus.java: Deleted the AppCacheStatus enum, including its values (UNCACHED, IDLE, CHECKING, DOWNLOADING, UPDATE_READY, OBSOLETE), associated methods (value, getEnum), and annotations (@Deprecated, @NullMarked). This change reflects the removal of outdated functionality tied to the deprecated AppCache API.

๐Ÿ”ง Implementation Notes

๐Ÿ’ก Additional Considerations

๐Ÿ”„ Types of changes

  • Cleanup (formatting, renaming)
  • Breaking changes

PR Type

Other


Description

  • Remove deprecated AppCacheStatus enum from HTML5 package

  • Remove deprecated app cache commands from DriverCommand interface

  • Clean up obsolete AppCache API functionality


Changes diagram

flowchart LR
  A["AppCacheStatus enum"] -- "deleted" --> B["Removed"]
  C["DriverCommand constants"] -- "removed GET_APP_CACHE & CLEAR_APP_CACHE" --> D["Cleaned up"]
Loading

Changes walkthrough ๐Ÿ“

Relevant files
Miscellaneous
AppCacheStatus.java
Delete entire AppCacheStatus enum file                                     

java/src/org/openqa/selenium/html5/AppCacheStatus.java

  • Complete removal of deprecated AppCacheStatus enum
  • Deleted all enum values (UNCACHED, IDLE, CHECKING, etc.)
  • Removed helper methods value() and getEnum()
  • +0/-67   
    DriverCommand.java
    Remove app cache command constants                                             

    java/src/org/openqa/selenium/remote/DriverCommand.java

  • Removed GET_APP_CACHE constant
  • Removed CLEAR_APP_CACHE constant
  • +0/-2     

    Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.