Skip to content

Commit c248e08

Browse files
runningcodeclaude
andcommitted
ref(core): Drop redundant StringBuilder in hashing helper (JAVA-554)
Return the hex string directly instead of wrapping it in a StringBuilder only to immediately call toString(). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 7ed7c97 commit c248e08

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sentry/src/main/java/io/sentry/util/StringUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,9 @@ private StringUtils() {}
143143
final BigInteger no = new BigInteger(1, messageDigest);
144144

145145
// Convert message digest into hex value
146-
final StringBuilder stringBuilder = new StringBuilder(no.toString(16));
147146

148147
// return the HashText
149-
return stringBuilder.toString();
148+
return no.toString(16);
150149
}
151150

152151
// For specifying wrong message digest algorithms

0 commit comments

Comments
 (0)