Skip to content

Conversation

Copy link

Copilot AI commented Nov 22, 2025

Corrected misspelled English words and grammatical errors in Java code comments across the codebase.

Changes

Fixed 34 typos across 21 files:

First commit (10 typos):

  • teh → the (1 occurrence)

    • SolrExampleTests.java
  • seperate → separate (1 occurrence)

    • FacetRangeProcessor.java
  • necesary → necessary (1 occurrence)

    • RebalanceLeaders.java
  • untill → until (1 occurrence)

    • SlotAcc.java
  • wether → whether (6 occurrences)

    • CollapsingQParserPlugin.java (3×)
    • AbstractVectorQParserBase.java (1×)
    • TestCloudPseudoReturnFields.java (1×)
    • LogListener.java (1×)

Second commit (13 typos):

  • doesnt → doesn't (1 occurrence)

    • BaseDistributedSearchTestCase.java
  • cant → can't (2 occurrences)

    • DocValuesMissingTest.java (2×)
  • didnt → didn't (2 occurrences)

    • ChaosMonkeyNothingIsSafeWithPullReplicasTest.java (1×)
    • AbstractChaosMonkeyNothingIsSafeTestBase.java (1×)
  • couldnt → couldn't (2 occurrences)

    • TransactionLog.java (1×)
    • BlockDirectoryTest.java (1×)
  • thats → that's (1 occurrence)

    • BlockDirectory.java
  • whats → what's (2 occurrences)

    • SoftAutoCommitTest.java (2×)
  • thru → through (3 occurrences)

    • OffsetCorrector.java (2×)
    • SearchHandler.java (1×)

Third commit (11 typos):

  • Duplicate word (1 occurrence)

    • "to to" → "to" in ApiBag.java
  • Incorrect indefinite articles (9 occurrences)

    • "a atomic" → "an atomic" in AtomicUpdateDocumentMerger.java
    • "a assert" → "an assert" in AddSchemaFieldsUpdateProcessorFactory.java (2×)
    • "a originalFieldValue" → "an originalFieldValue" in DocumentBuilder.java
    • "a invalid" → "an invalid" in Overseer.java
    • "a input" → "an input" in ManagedSynonymGraphFilterFactory.java
    • "a enum" → "an enum" in SearchHandler.java
    • "a enough" → "enough" in StatsField.java
    • "an NoNodeException" → "a NoNodeException" in CollectionPropertiesZkStateReader.java
    • "a appropriate" → "an appropriate" in AbstractIncrementalBackupTest.java
  • Double article (1 occurrence)

    • "a an List" → "a List" in TestCloudPseudoReturnFields.java

All changes affect only comments—no code logic modified.

Original prompt

Can you go through all the comments in the Java code and look for typos. If you see a typo, please fix it. This should focus just on english language words that are misspelled.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix typos in comments across Java code Fix spelling typos in Java comments Nov 22, 2025
Copilot finished work on behalf of epugh November 22, 2025 17:58
Copilot AI requested a review from epugh November 22, 2025 17:58
@epugh
Copy link
Owner

epugh commented Nov 22, 2025

@copilot can you look and see if there are other typos?

Copy link
Author

Copilot AI commented Nov 22, 2025

@copilot can you look and see if there are other typos?

Yes, I found 13 additional typos and fixed them in commit 4f67ef3:

  • Missing apostrophes in contractions: "doesnt" → "doesn't", "cant" → "can't", "didnt" → "didn't", "couldnt" → "couldn't", "thats" → "that's", "whats" → "what's" (9 instances total)
  • Informal language: "thru" → "through" (3 instances)

Combined with the initial 10 typos, this PR now fixes 23 typos across 18 files.

Copilot finished work on behalf of epugh November 22, 2025 18:16
@epugh
Copy link
Owner

epugh commented Nov 22, 2025

Thats great news @copilot. Want to make one more pass looking for typoes?

Copy link
Author

Copilot AI commented Nov 22, 2025

Thats great news @copilot. Want to make one more pass looking for typoes?

Done! Found and fixed 11 more typos in commit 63d4539:

  • Duplicate word: "to to" → "to" (1 instance)
  • Incorrect indefinite articles (a/an): 9 instances where "a" was used before a vowel sound or "an" before a consonant sound
  • Double article: "a an List" → "a List" (1 instance)

This brings the total to 34 typos fixed across 21 files in this PR.

Copilot finished work on behalf of epugh November 22, 2025 19:40
@epugh
Copy link
Owner

epugh commented Dec 1, 2025

this was merged into solr/apache seperately

@epugh epugh closed this Dec 1, 2025
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