Replace System.getProperty('line.separator') with System.lineSeparator().
Resolves #13768
This commit is contained in:
parent
cafbf48783
commit
87500449a0
3 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ public class LogSectionLogcat implements LogSection {
|
||||||
final Process process = Runtime.getRuntime().exec("logcat -d");
|
final Process process = Runtime.getRuntime().exec("logcat -d");
|
||||||
final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));
|
final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));
|
||||||
final StringBuilder log = new StringBuilder();
|
final StringBuilder log = new StringBuilder();
|
||||||
final String separator = System.getProperty("line.separator");
|
final String separator = System.lineSeparator();
|
||||||
|
|
||||||
String line;
|
String line;
|
||||||
while ((line = bufferedReader.readLine()) != null) {
|
while ((line = bufferedReader.readLine()) != null) {
|
||||||
|
|
|
@ -14,7 +14,7 @@ public class Hex {
|
||||||
private final static int HEX_DIGITS_START = 10;
|
private final static int HEX_DIGITS_START = 10;
|
||||||
private final static int ASCII_TEXT_START = HEX_DIGITS_START + (16*2 + (16/2));
|
private final static int ASCII_TEXT_START = HEX_DIGITS_START + (16*2 + (16/2));
|
||||||
|
|
||||||
final static String EOL = System.getProperty("line.separator");
|
final static String EOL = System.lineSeparator();
|
||||||
|
|
||||||
private final static char[] HEX_DIGITS = {
|
private final static char[] HEX_DIGITS = {
|
||||||
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
|
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
|
||||||
|
|
|
@ -16,7 +16,7 @@ public class Hex {
|
||||||
private final static int HEX_DIGITS_START = 10;
|
private final static int HEX_DIGITS_START = 10;
|
||||||
private final static int ASCII_TEXT_START = HEX_DIGITS_START + (16*2 + (16/2));
|
private final static int ASCII_TEXT_START = HEX_DIGITS_START + (16*2 + (16/2));
|
||||||
|
|
||||||
final static String EOL = System.getProperty("line.separator");
|
final static String EOL = System.lineSeparator();
|
||||||
|
|
||||||
private final static char[] HEX_DIGITS = {
|
private final static char[] HEX_DIGITS = {
|
||||||
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
|
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
|
||||||
|
|
Loading…
Add table
Reference in a new issue