mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
System.lineSeparator() doesn't exist in Java 6.
This commit is contained in:
@@ -212,11 +212,12 @@ public class MessageEncrypter {
|
||||
}
|
||||
|
||||
private static String readFully(InputStream in) throws IOException {
|
||||
String newline = System.getProperty("line.separator");
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
Scanner scanner = new Scanner(in);
|
||||
while (scanner.hasNextLine()) {
|
||||
stringBuilder.append(scanner.nextLine());
|
||||
stringBuilder.append(System.lineSeparator());
|
||||
stringBuilder.append(newline);
|
||||
}
|
||||
scanner.close();
|
||||
in.close();
|
||||
|
||||
Reference in New Issue
Block a user