He-Pin opened a new pull request, #3143: URL: https://github.com/apache/pekko/pull/3143
### Motivation `PemManagersProvider.loadPrivateKey` reads a PEM file with `Files.readAllBytes()` and immediately converts to `String` via `new String(bytes, StandardCharsets.UTF_8)`. ### Modification Replace with `Files.readString()` (JDK 11) which reads a file directly into a `String` using UTF-8 by default. Remove the unused `StandardCharsets` import. ### Result Eliminates intermediate `byte[]` allocation and explicit charset conversion. One line instead of two. ### Tests - `sbt "remote/compile"` — passed ### References Refs #3136 -- 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]
