Problem
Format handling in ProjectPolicy needs standardization or completion.
File Location
src/main/java/io/err0/client/core/ProjectPolicy.java:31
Context
Similar to RealmPolicy, this FIXME indicates incomplete or inconsistent format handling.
Investigation Required
- Review code around line 31 in ProjectPolicy.java
- Compare with RealmPolicy.java format handling
- Identify what needs standardization
- Check for format validation
Questions to Answer
- What formats are being handled?
- Is there duplication between RealmPolicy and ProjectPolicy?
- Should format handling be extracted to a shared utility?
- Are all format edge cases covered?
Implementation Steps
- Investigate: Read ProjectPolicy.java lines 20-45 to understand context
- Compare: Review RealmPolicy.java format handling for consistency
- Refactor: Consider extracting common format handling to utility class
- Validate: Add format validation if needed
- Document: Add clear comments explaining format handling
- Test: Ensure comprehensive test coverage
Potential Refactoring
If both RealmPolicy and ProjectPolicy handle formats similarly:
- Create
FormatUtils class for shared logic
- Standardize format string patterns
- Centralize format validation
Reference Files
src/main/java/io/err0/client/core/RealmPolicy.java (related FIXME)
- Policy test files in
src/test/
Acceptance Criteria
Problem
Format handling in ProjectPolicy needs standardization or completion.
File Location
src/main/java/io/err0/client/core/ProjectPolicy.java:31// FIXME - formatsContext
Similar to RealmPolicy, this FIXME indicates incomplete or inconsistent format handling.
Investigation Required
Questions to Answer
Implementation Steps
Potential Refactoring
If both RealmPolicy and ProjectPolicy handle formats similarly:
FormatUtilsclass for shared logicReference Files
src/main/java/io/err0/client/core/RealmPolicy.java(related FIXME)src/test/Acceptance Criteria