Skip to content

Commit 6b890fc

Browse files
GrzegorzBobrykTheTechZone
authored andcommitted
Replace System.getProperty('line.separator') with System.lineSeparator().
Resolves signalapp#13768
1 parent a00eeba commit 6b890fc

File tree

3 files changed

+3
-3
lines changed
  • app/src/main/java/org/thoughtcrime/securesms/logsubmit
  • core-util-jvm/src/main/java/org/signal/core/util
  • libsignal-service/src/main/java/org/whispersystems/signalservice/internal/util

3 files changed

+3
-3
lines changed

app/src/main/java/org/thoughtcrime/securesms/logsubmit/LogSectionLogcat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class LogSectionLogcat implements LogSection {
2121
final Process process = Runtime.getRuntime().exec("logcat -d");
2222
final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));
2323
final StringBuilder log = new StringBuilder();
24-
final String separator = System.getProperty("line.separator");
24+
final String separator = System.lineSeparator();
2525

2626
String line;
2727
while ((line = bufferedReader.readLine()) != null) {

core-util-jvm/src/main/java/org/signal/core/util/Hex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Hex {
1414
private final static int HEX_DIGITS_START = 10;
1515
private final static int ASCII_TEXT_START = HEX_DIGITS_START + (16*2 + (16/2));
1616

17-
final static String EOL = System.getProperty("line.separator");
17+
final static String EOL = System.lineSeparator();
1818

1919
private final static char[] HEX_DIGITS = {
2020
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'

libsignal-service/src/main/java/org/whispersystems/signalservice/internal/util/Hex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class Hex {
1616
private final static int HEX_DIGITS_START = 10;
1717
private final static int ASCII_TEXT_START = HEX_DIGITS_START + (16*2 + (16/2));
1818

19-
final static String EOL = System.getProperty("line.separator");
19+
final static String EOL = System.lineSeparator();
2020

2121
private final static char[] HEX_DIGITS = {
2222
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'

0 commit comments

Comments
 (0)