mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-07 17:29:44 +02:00
Fix: Pass chars to StringBuilder.append()
This commit is contained in:
parent
ac17000ff1
commit
e72e5a15c0
1 changed files with 4 additions and 4 deletions
|
@ -81,12 +81,12 @@ public class VerificationJSONTest {
|
|||
sb.append("\"signers\": [");
|
||||
for (Iterator<String> iterator = json.getSigners().iterator(); iterator.hasNext(); ) {
|
||||
String signer = iterator.next();
|
||||
sb.append("\"").append(signer).append("\"");
|
||||
sb.append('\"').append(signer).append('\"');
|
||||
if (iterator.hasNext()) {
|
||||
sb.append(", ");
|
||||
}
|
||||
}
|
||||
sb.append("]");
|
||||
sb.append(']');
|
||||
}
|
||||
|
||||
if (json.getComment() != null) {
|
||||
|
@ -94,7 +94,7 @@ public class VerificationJSONTest {
|
|||
sb.append(", ");
|
||||
}
|
||||
comma = true;
|
||||
sb.append("\"comment\": \"").append(json.getComment()).append("\"");
|
||||
sb.append("\"comment\": \"").append(json.getComment()).append('\"');
|
||||
}
|
||||
|
||||
if (json.getExt() != null) {
|
||||
|
@ -104,7 +104,7 @@ public class VerificationJSONTest {
|
|||
comma = true;
|
||||
sb.append("\"ext\": ").append(json.getExt().toString());
|
||||
}
|
||||
return sb.append("}").toString();
|
||||
return sb.append('}').toString();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue