Skip to content

Fix documentation terminology and method usage#4617

Merged
StevenLuMT merged 4 commits into
apache:masterfrom
liangyepianzhou:doc/Enumerator
Jul 12, 2025
Merged

Fix documentation terminology and method usage#4617
StevenLuMT merged 4 commits into
apache:masterfrom
liangyepianzhou:doc/Enumerator

Conversation

@liangyepianzhou

@liangyepianzhou liangyepianzhou commented Jun 11, 2025

Copy link
Copy Markdown
Contributor

Motivation

  1. Incorrectly uses "Enumerator" when referring to the Java standard interface java.util.Enumeration
  2. Uses invalid method names (hasNextElement() instead of hasMoreElements(), entry.getId() instead of entry.getEntryId())

Impact

  1. Misleads developers searching for non-existent Enumerator APIs
  2. Creates inconsistency with Java official documentation, reducing the professionalism of the document
  3. Uses incorrect API methods that would cause compilation errors

Changes

  1. Terminology corrections:
    Replaced all Enumerator references with Enumeration
  2. Method fixes:
    • Corrected hasNextElement()hasMoreElements() in loop conditions
    • Fixed entry.getId()entry.getEntryId() for entry ID access
    • Added missing @Override annotation in async callback

xiangying added 4 commits June 11, 2025 20:09
### Motivation
The current documentation incorrectly uses "Enumerator" when referring to the Java standard interface `java.util.Enumeration`. "Enumerator" is not a valid Java term, leading to confusion and inaccuracies.

**Impact**
1. Misleads developers searching for non-existent `Enumerator` APIs
2. Creates inconsistency with Java official documentation
3. May cause misunderstandings about legacy Java collection frameworks

### Modification
- Replaced all `Enumerator` references with `Enumeration`
### Motivation
The current documentation incorrectly uses "Enumerator" when referring to the Java standard interface `java.util.Enumeration`. "Enumerator" is not a valid Java term, leading to confusion and inaccuracies.

**Impact**
1. Misleads developers searching for non-existent `Enumerator` APIs
2. Creates inconsistency with Java official documentation
3. May cause misunderstandings about legacy Java collection frameworks

### Modification
- Replaced all `Enumerator` references with `Enumeration`
@liangyepianzhou liangyepianzhou changed the title Fix documentation terminology: Correct "Enumerator" to "Enumeration" Fix documentation terminology and method usage Jun 11, 2025

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes terminology and API usage in the ledger API documentation to align with Java standards and prevent compilation errors.

  • Replaces incorrect Enumerator references with java.util.Enumeration
  • Updates loop and entry methods: hasNextElement()hasMoreElements(), getId()getEntryId()
  • Adds missing @Override annotation and corrects the deleteComplete callback signature

@StevenLuMT StevenLuMT 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.

Good jobs

@StevenLuMT StevenLuMT merged commit 45f7a92 into apache:master Jul 12, 2025
15 of 16 checks passed
@hangc0276 hangc0276 added this to the 4.18.0 milestone May 29, 2026
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.

4 participants