Skip to content

Introduce a Constant Class for Property Keys #37

@arkaprovob

Description

@arkaprovob

Description:
Currently, in our codebase, we have multiple instances where property keys are declared and used across different classes. This leads to redundancy and makes the code less maintainable. To address this issue and improve code consistency, I propose creating a constant class to hold all the property keys.

Proposed Solution:
Creating a dedicated constant class that will house all property keys as constants. This way, any class that requires a particular property key can simply fetch it from the constant class rather than declaring it separately. This approach will streamline our codebase, reduce redundancy, and enhance code maintainability.

Benefits:

  • Eliminates redundancy in property key declarations.
  • Promotes code consistency.
  • Improves codebase maintainability.
  • Enhances overall code quality.

Implementation Guidelines:

  1. Create a new constant class or utilize an existing one for this purpose (ApplicationConstants.java).
  2. Define all property keys as public static final constants within the constant class.
  3. Update all existing classes that use property keys to fetch them from the constant class.

Additional Information:
Please ensure that all new code contributions follow this practice, and consider updating existing code where appropriate.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions