Refactor readFromInputStream

This commit is contained in:
Grzegorz Piwowarek 2016-10-10 07:11:06 +02:00
parent 9da1680d0f
commit fa1fc3cbe7
1 changed files with 1 additions and 2 deletions

View File

@ -111,8 +111,7 @@ public class FileOperationsTest {
try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream))) {
String line;
while ((line = bufferedReader.readLine()) != null) {
resultStringBuilder.append(line);
resultStringBuilder.append("\n");
resultStringBuilder.append(line).append("\n");
}
}
return resultStringBuilder.toString();