Provide encoding to String#getBytes()
Fixes ErrorProne complaint. Change-Id: I706b225f98187bf5f86999ed5342d0072e57e314
This commit is contained in:
parent
5709317f71
commit
f0524d59f7
|
@ -9,6 +9,7 @@
|
|||
*/
|
||||
package org.eclipse.jgit.pgm;
|
||||
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
|
@ -213,7 +214,7 @@ protected static InputStream createInputStream(String[] inputLines) {
|
|||
|
||||
protected static InputStream createInputStream(List<String> inputLines) {
|
||||
String input = String.join(System.lineSeparator(), inputLines);
|
||||
InputStream inputStream = new ByteArrayInputStream(input.getBytes());
|
||||
InputStream inputStream = new ByteArrayInputStream(input.getBytes(UTF_8));
|
||||
return inputStream;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue