Skip to content

MINOR: Fix "does not exists" grammatical typos in messages and Javadoc#22760

Open
gaoxiaolei-s59 wants to merge 1 commit into
apache:trunkfrom
gaoxiaolei-s59:minor-fix-does-not-exist-typos
Open

MINOR: Fix "does not exists" grammatical typos in messages and Javadoc#22760
gaoxiaolei-s59 wants to merge 1 commit into
apache:trunkfrom
gaoxiaolei-s59:minor-fix-does-not-exist-typos

Conversation

@gaoxiaolei-s59

@gaoxiaolei-s59 gaoxiaolei-s59 commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #22544, fixing a few more occurrences of the same class of typo found in a repo-wide sweep.

Fixes subject-verb agreement typos ("does not exists" → "does not exist") in user-facing diagnostic messages and Javadoc:

  • StateDirectory@throws Javadoc: "does not exists""does not exist"
  • TransactionIndex@return Javadoc: "doesn't exists""doesn't exist"
  • MetadataQuorumCommand — exception message: "Properties file ... does not exists!""...does not exist!"

Javadoc and string-literal changes only, with no behavior change. The MetadataQuorumCommandErrorTest assertion and its test method name are updated to match the corrected message.

Reviewers: Andrew Schofield aschofield@confluent.io

Fix subject-verb agreement typos ("does not exists" -> "does not exist")
in user-facing diagnostic messages and Javadoc:

- StateDirectory (Javadoc): "does not exists" -> "does not exist"
- TransactionIndex (Javadoc): "doesn't exists" -> "doesn't exist"
- MetadataQuorumCommand: "does not exists!" -> "does not exist!"

Javadoc and string-literal changes only; no behavior change. The
MetadataQuorumCommand test assertion and its test method name are
updated to match.
@github-actions github-actions Bot added triage PRs from the community streams tools storage Pull requests that target the storage module small Small PRs labels Jul 5, 2026

@AndrewJSchofield AndrewJSchofield left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the PR. Just one trivial comment to address.

@@ -168,7 +168,7 @@ private static Properties getProperties(File optionalCommandConfig) throws Terse
return new Properties();
} else {
if (!optionalCommandConfig.exists())
throw new TerseException("Properties file " + optionalCommandConfig.getPath() + " does not exists!");
throw new TerseException("Properties file " + optionalCommandConfig.getPath() + " does not exist!");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It seems to me that this is a serious tool and an exclamation mark is not ideal. Please change it to just does not exist. with a period instead.

@github-actions github-actions Bot removed the triage PRs from the community label Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved small Small PRs storage Pull requests that target the storage module streams tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants