From 0094543e5fd46d635223198bf6d87448ffefc55c Mon Sep 17 00:00:00 2001 From: Kothari Date: Fri, 30 Aug 2024 14:56:13 +0530 Subject: [PATCH] Replace StringBuffer with StringBuilder Signed-off-by: Kothari --- .../keydistribution/service/did/DidTrustListService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/tng/trustnetwork/keydistribution/service/did/DidTrustListService.java b/src/main/java/tng/trustnetwork/keydistribution/service/did/DidTrustListService.java index b885fde..0d74ca3 100644 --- a/src/main/java/tng/trustnetwork/keydistribution/service/did/DidTrustListService.java +++ b/src/main/java/tng/trustnetwork/keydistribution/service/did/DidTrustListService.java @@ -154,14 +154,14 @@ public String generateTrustListVerificationId(SignerInformationEntity signerInfo + SEPARATOR_DID_PATH + getMappedGroupName(signerInformationEntity.getGroup()) + SEPARATOR_DID_PATH + encodeKid(signerInformationEntity.getKid()); - StringBuffer buf = new StringBuffer(); + StringBuilder stringBuilder = new StringBuilder(); String[] pathArray = defaultPath.split(SEPARATOR_DID_PATH); for (int i = path.size(); i <= pathArray.length - 1; i++) { - buf.append(SEPARATOR_DID_PATH + pathArray[i]); + stringBuilder.append(SEPARATOR_DID_PATH + pathArray[i]); } - return getDocumentId(false) + buf + SEPARATOR_DID_ID + encodeKid(signerInformationEntity.getKid()); + return getDocumentId(false) + stringBuilder; } }