We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a738b4b commit f0f4953Copy full SHA for f0f4953
1 file changed
src/test/java/com/bettercloud/vault/SSLTests.java
@@ -173,13 +173,13 @@ public void testSslPem_UTF8() throws Exception {
173
174
final BufferedReader in = new BufferedReader(new InputStreamReader(this.getClass().getResourceAsStream("/cert.pem")));
175
final StringBuilder builder = new StringBuilder();
176
- String utf8 = "";
+ StringBuilder utf8 = new StringBuilder();
177
String str;
178
while ((str = in.readLine()) != null) {
179
- utf8 += str + System.lineSeparator();//NOPMD
+ utf8.append(str).append(System.lineSeparator());//NOPMD
180
}
181
in.close();
182
- final String pemUTF8 = utf8;
+ final String pemUTF8 = utf8.toString();
183
184
final VaultConfig vaultConfig = new VaultConfig()
185
.address("https://127.0.0.1:9998")
0 commit comments