Cleanup Arrays.copyOfRange() call 32/101832/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 11 Jul 2022 22:02:17 +0000 (00:02 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 11 Jul 2022 22:02:17 +0000 (00:02 +0200)
Let's keep the call on a single line to improve clarity.

Change-Id: Id57e91bf3c42a7a9cd655cfab7f2bc21649ceab4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
aaa-encrypt-service/api/src/main/java/org/opendaylight/aaa/encrypt/PKIUtil.java

index 563810c790ed5ddd5a3fa78ffa93c81c3d0b2468..282cb4ee752bfb47debc0db1594f76346180b036 100644 (file)
@@ -127,8 +127,8 @@ public class PKIUtil {
         ECNamedCurveSpec params256r1 = new ECNamedCurveSpec(ECDSA_SUPPORTED_CURVE_NAME_SPEC, spec256r1.getCurve(),
                 spec256r1.getG(), spec256r1.getN());
         // The total length is 104 bytes, and the X and Y encoding uses the last 65 of these 104 bytes.
-        ECPoint point = ECPointUtil.decodePoint(params256r1.getCurve(), Arrays.copyOfRange(bytes, ECDSA_TOTAL_STR_LEN
-                - ECDSA_THIRD_STR_LEN, ECDSA_TOTAL_STR_LEN));
+        ECPoint point = ECPointUtil.decodePoint(params256r1.getCurve(),
+            Arrays.copyOfRange(bytes, ECDSA_TOTAL_STR_LEN - ECDSA_THIRD_STR_LEN, ECDSA_TOTAL_STR_LEN));
         ECPublicKeySpec pubKeySpec = new ECPublicKeySpec(point, params256r1);
 
         return ecdsaFactory.generatePublic(pubKeySpec);