Skip to content

Commit e7a2f59

Browse files
committed
replace stringbuilder with string
1 parent ab432ac commit e7a2f59

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/java/org/privacyidea/Endpoint.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ void sendRequestAsync(String endpoint, Map<String, String> params, Map<String, S
122122
{
123123
if (k.equals("pass") || k.equals("password"))
124124
{
125-
StringBuilder tmp = new StringBuilder();
126-
tmp.append("*".repeat(v.length()));
127-
v = tmp.toString();
125+
v = "*".repeat(v.length());
128126
}
129127

130128
privacyIDEA.log(k + "=" + v);

0 commit comments

Comments
 (0)