From e8e5bc953e172aa48f7edc9bbaf90036b3d454dc Mon Sep 17 00:00:00 2001 From: Nuvindu Date: Fri, 13 Oct 2023 20:15:43 +0530 Subject: [PATCH] Apply suggestions from the review --- native/src/main/java/org/wssec/WsSecurityUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/native/src/main/java/org/wssec/WsSecurityUtils.java b/native/src/main/java/org/wssec/WsSecurityUtils.java index ac176fd..38c45e4 100644 --- a/native/src/main/java/org/wssec/WsSecurityUtils.java +++ b/native/src/main/java/org/wssec/WsSecurityUtils.java @@ -62,8 +62,7 @@ public class WsSecurityUtils { public static void buildSignature(RequestData reqData, WSSecSignature sign) throws Exception { - List parts; - parts = new ArrayList<>(1); + List parts = new ArrayList<>(1); Document doc = reqData.getSecHeader().getSecurityHeaderElement().getOwnerDocument(); parts.add(WSSecurityUtil.getDefaultEncryptionPart(doc)); List referenceList = sign.addReferencesToSign(parts);