refactor: use HexFormat for digest encoding by codingkiddo · Pull Request #772 · floci-io/floci (original) (raw)
Summary
Replaces manual byte-to-hex conversion using StringBuilder and String.format("%02x", ...) with the standard JDK HexFormat API.
This keeps the same lowercase/no-delimiter hex output while making the digest encoding code simpler and more readable.
Why
Floci targets modern Java, so HexFormat is available and is a better fit for byte-to-hex conversion than manually formatting each byte.
Testing
./mvnw clean package -DskipTests./mvnw test -Dtest=ApiGatewayAuthorizerContextIntegrationTest./mvnw test
Full test result:
Tests run: 4118, Failures: 0, Errors: 0, Skipped: 0
BUILD SUCCESS