Skip to content

Commit

Permalink
Replace StringBuffer with StringBuilder
Browse files Browse the repository at this point in the history
Signed-off-by: Kothari <[email protected]>
  • Loading branch information
kotharikaushal committed Aug 30, 2024
1 parent dd5317b commit 0094543
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 0094543

Please sign in to comment.