He-Pin opened a new pull request, #315:
URL: https://github.com/apache/pekko-persistence-dynamodb/pull/315
### Motivation
Compilation produces four deprecation warnings from AWS SDK v1 API usage:
- `ClientConfiguration.setUserAgent` in `DynamoDBConfig.scala:85`
- `new AmazonDynamoDBAsyncClient(creds, config, executor)` in
`package.scala:72`
- `new AmazonDynamoDBAsyncClient(config)` in `package.scala:74`
- `AmazonWebServiceClient.setEndpoint` in `package.scala:76`
### Modification
- Replace deprecated `AmazonDynamoDBAsyncClient` constructors and
`setEndpoint` call with the `AmazonDynamoDBAsyncClientBuilder` pattern in
`package.scala`, using `withCredentials`, `withClientConfiguration`,
`withEndpointConfiguration`, and `withExecutorFactory`.
- Add `@nowarn("msg=is deprecated")` to the `setUserAgent` call in
`DynamoDBClientConfig` since AWS SDK v1 provides no non-deprecated replacement
for this method on `ClientConfiguration`.
### Result
Clean compilation with zero deprecation warnings on both Scala 2.13 and
Scala 3.3.
### Tests
- `sbt "++2.13.18; clean; compile"` -- no warnings
- `sbt "++3.3.8; clean; compile"` -- no warnings
### References
None - compiler warning 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]