Skip to content

Use isEquivalentTo instead of equals for tint and alternate in Separa… - #741

Open
LonelyMidoriya wants to merge 1 commit into
integrationfrom
annex-j-comparison
Open

Use isEquivalentTo instead of equals for tint and alternate in Separa…#741
LonelyMidoriya wants to merge 1 commit into
integrationfrom
annex-j-comparison

Conversation

@LonelyMidoriya

@LonelyMidoriya LonelyMidoriya commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

…tion

Summary by CodeRabbit

  • Bug Fixes
    • Improved consistency validation for separation colors by recognizing equivalent color definitions, reducing incorrect inconsistency reports.

@LonelyMidoriya LonelyMidoriya self-assigned this Jul 30, 2026
@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c5626d38-3eb3-4a6b-bdbe-bf38f37ee8a6

📥 Commits

Reviewing files that changed from the base of the PR and between c9d6024 and 1a364e5.

📒 Files selected for processing (1)
  • validation-model/src/main/java/org/verapdf/gf/model/impl/pd/colors/GFPDSeparation.java

📝 Walkthrough

Walkthrough

The separation consistency check now uses equivalence rather than strict object equality when comparing alternate spaces and tint transforms for separations sharing a colorant name.

Changes

Separation consistency

Layer / File(s) Summary
Use equivalence for consistency checks
validation-model/src/main/java/org/verapdf/gf/model/impl/pd/colors/GFPDSeparation.java
getareTintAndAlternateConsistent() compares alternate spaces and tint transforms with isEquivalentTo(...) instead of equals(...).

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: maximplusov

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the change from equals to isEquivalentTo in Separation tint and alternate comparison.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch annex-j-comparison

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant