He-Pin opened a new pull request, #176:
URL: https://github.com/apache/pekko-samples/pull/176
### Motivation
Two Java sample files use the deprecated `Http.bindAndHandle()` API,
producing deprecation warnings during compilation.
### Modification
- **WeatherHttpServer.java** (pekko-sample-sharding-java): replace
`bindAndHandle` with `newServerAt("localhost", port).bind(routes)`, remove
unused `ConnectHttp`, `Materializer` and `SystemMaterializer` imports
- **DemoApp.java** (pekko-sample-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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]