Skip to content

#12 correct Javadoc on TkApp.app() static factory - #388

Open
edmoffo wants to merge 1 commit into
yegor256:masterfrom
edmoffo:12-fix-ctor-javadoc
Open

#12 correct Javadoc on TkApp.app() static factory#388
edmoffo wants to merge 1 commit into
yegor256:masterfrom
edmoffo:12-fix-ctor-javadoc

Conversation

@edmoffo

@edmoffo edmoffo commented Jun 23, 2026

Copy link
Copy Markdown

Issue #12 calls out a few private static members in this codebase that read awkwardly. The clearest defect of that set is in src/main/java/net/rehttp/tk/TkApp.java at line 60: the private static factory app(Base) carries a Ctor. Javadoc summary, but it is not a constructor — it builds and returns the Take pipeline that TkApp's real constructor passes up to super(...). This change rewrites that single Javadoc sentence to describe what the method actually does.

No production code is touched, no signatures change, no behavior changes. The only diff is one Javadoc line in TkApp.java. Generated documentation now matches the source.

Verified locally with mvn clean install -Pqulice on JDK 17. The build reports the same pre-existing 28 HeaderCheck violations that are present on master (the SPDX header is not yet aligned with the checkstyle template); this patch neither adds nor removes any of them. The latest mvn workflow runs on master are red for the same reason, unrelated to this change.

Closes #12

The private static `app(Base)` method is a factory that
builds the Take pipeline; the previous `Ctor.` Javadoc
incorrectly described it as a constructor.
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.

Usage of static fields

1 participant