From 2228443119d1aee84730df4a50184b97e9e0c232 Mon Sep 17 00:00:00 2001 From: Greg Rubin Date: Mon, 14 Aug 2023 13:31:03 -0700 Subject: [PATCH] Fix linting --- .../corretto/crypto/provider/test/EvpSignatureTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tst/com/amazon/corretto/crypto/provider/test/EvpSignatureTest.java b/tst/com/amazon/corretto/crypto/provider/test/EvpSignatureTest.java index dd76cea9..3751edce 100644 --- a/tst/com/amazon/corretto/crypto/provider/test/EvpSignatureTest.java +++ b/tst/com/amazon/corretto/crypto/provider/test/EvpSignatureTest.java @@ -434,7 +434,8 @@ public void verifyBadSignature(TestParams params) throws GeneralSecurityExceptio @MethodSource("params") public void verifyTruncatedSignature(TestParams params) throws GeneralSecurityException { params.verifier.update(params.message); - final byte[] badSignature = Arrays.copyOf(params.goodSignature, params.goodSignature.length - 1); + final byte[] badSignature = + Arrays.copyOf(params.goodSignature, params.goodSignature.length - 1); // Truncated signatures always throw now. assertThrows(SignatureException.class, () -> params.verifier.verify(badSignature)); } @@ -443,7 +444,8 @@ public void verifyTruncatedSignature(TestParams params) throws GeneralSecurityEx @MethodSource("params") public void verifyExtendedSignature(TestParams params) throws GeneralSecurityException { params.verifier.update(params.message); - final byte[] badSignature = Arrays.copyOf(params.goodSignature, params.goodSignature.length + 1); + final byte[] badSignature = + Arrays.copyOf(params.goodSignature, params.goodSignature.length + 1); // Extended signatures always throw now. assertThrows(SignatureException.class, () -> params.verifier.verify(badSignature)); }