He-Pin opened a new pull request, #3144: URL: https://github.com/apache/pekko/pull/3144
### Motivation `String.format(fmt, args)` is a static method call. JDK 15 added `String.formatted(args)` as a fluent instance method on the format string itself. ### Modification Replace 2 occurrences of `String.format(fmt, args)` with `fmt.formatted(args)`: - `UnsynchronizedByteArrayInputStream.java`: range check error message - `AeronErrorLog.java`: Aeron error logging ### Result More readable fluent API style, functionally identical. ### Tests - `sbt "actor/compile" "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]
