Skip to content

Fix incorrect parameter names in GradientFormatter error messages#15781

Open
vinaykpud wants to merge 3 commits intoapache:mainfrom
vinaykpud:fix/gradient-formatter-error-messages
Open

Fix incorrect parameter names in GradientFormatter error messages#15781
vinaykpud wants to merge 3 commits intoapache:mainfrom
vinaykpud:fix/gradient-formatter-error-messages

Conversation

@vinaykpud
Copy link
Copy Markdown

Description

  • Fix error message for maxForegroundColor validation that incorrectly referenced "minForegroundColor"
  • Fix error message for maxBackgroundColor validation that incorrectly referenced "minBackgroundColor"
  • Remove commented-out dead code (corpusReader, totalNumDocs)
  • Remove redundant duplicate zero-check in highlightTerm()

- Fix error message for maxForegroundColor validation that incorrectly
  referenced "minForegroundColor"
- Fix error message for maxBackgroundColor validation that incorrectly
  referenced "minBackgroundColor"
- Remove commented-out dead code (corpusReader, totalNumDocs)
- Remove redundant duplicate zero-check in highlightTerm()
@github-actions github-actions bot added this to the 11.0.0 milestone Feb 28, 2026
Comment thread lucene/CHANGES.txt Outdated

* GITHUB#15781: Fix incorrect parameter names in GradientFormatter error messages. Validation of
maxForegroundColor and maxBackgroundColor incorrectly referenced "minForegroundColor" and
"minBackgroundColor" in their error messages. Also removed dead code and a redundant
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we have a more concise change log? May generate it by LLM.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the dev@lucene.apache.org list. Thank you for your contribution!

@github-actions github-actions bot added the Stale label Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants