Skip to content

Conversation

@mattinannt
Copy link
Member

This pull request refactors the UpdateQueue class in the android/src/main/java/com/formbricks/android/network/queue/UpdateQueue.kt file to simplify its design and improve usability. The most important changes include converting the UpdateQueue class into an object and moving the DEBOUNCE_INTERVAL constant from a companion object to the main object declaration.

Refactoring of UpdateQueue:

  • Converted UpdateQueue from a class with a private constructor to an object, making it a singleton by design and eliminating the need for a companion object.
  • Removed the companion object and relocated the DEBOUNCE_INTERVAL constant directly into the UpdateQueue object for better encapsulation and simplicity.

@sonarqubecloud
Copy link

@mattinannt mattinannt merged commit ffde26a into main May 14, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants