Skip to content

fix: fix javadoc warning in ShoppingCart example#177

Merged
He-Pin merged 2 commits into
apache:mainfrom
He-Pin:fix/javadoc-warnings
Jul 5, 2026
Merged

fix: fix javadoc warning in ShoppingCart example#177
He-Pin merged 2 commits into
apache:mainfrom
He-Pin:fix/javadoc-warnings

Conversation

@He-Pin

@He-Pin He-Pin commented Jul 4, 2026

Copy link
Copy Markdown
Member

Motivation

Javadoc warning in pekko-sample-persistence-java/src/main/java/sample/persistence/ShoppingCart.java:

  • {@link Summary} cannot be resolved because Summary is an inner class of ShoppingCart and needs the enclosing class prefix

Modification

  • Replace {@link Summary} with {@link ShoppingCart.Summary}

Result

Javadoc warning is eliminated.

Tests

Not run - docs only

References

None

He-Pin added 2 commits July 4, 2026 15:24
…va samples

Motivation:
Two Java sample files use the deprecated Http.bindAndHandle() API,
producing deprecation warnings during compilation.

Modification:
- WeatherHttpServer.java (sharding-java): replace bindAndHandle with
  newServerAt("localhost", port).bind(routes), remove unused ConnectHttp,
  Materializer and SystemMaterializer imports
- DemoApp.java (cluster-kubernetes-java): replace bindAndHandle with
  newServerAt("0.0.0.0", 8080).bind(complete(...)), remove unused
  ConnectHttp and Materializer imports

Result:
Samples use the modern HTTP server binding API. No more deprecation
warnings from these files.

Tests:
- sbt compile in pekko-sample-sharding-java (no warnings)
- pekko-sample-cluster-kubernetes-java: not run - pre-existing dependency
  resolution issue (Maven project with missing published artifacts)

References: None - cleanup
Motivation:
Javadoc warning: `{@link Summary}` cannot be resolved because `Summary`
is an inner class of `ShoppingCart` and needs the enclosing class prefix.

Modification:
- Replace `{@link Summary}` with `{@link ShoppingCart.Summary}`

Result:
Javadoc warning is eliminated.

Tests:
Not run - docs only

References:
None
@He-Pin
He-Pin requested a review from pjfanning July 4, 2026 14:32

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

lgtm

@He-Pin
He-Pin merged commit 35e8323 into apache:main Jul 5, 2026
2 checks passed
@He-Pin
He-Pin deleted the fix/javadoc-warnings branch July 5, 2026 03:15
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.

2 participants