mirror of
https://github.com/revanced/smali.git
synced 2025-05-01 15:14:32 +02:00
Replace use of System.lineSeparator(), to keep compatibility with java 6
This commit is contained in:
parent
338db9fdf7
commit
fce4cc0c42
@ -104,8 +104,9 @@ public class AnalysisTest {
|
||||
className.substring(1, className.length() - 1));
|
||||
String smaliContents = readResource(smaliPath);
|
||||
|
||||
Assert.assertEquals(smaliContents.replace("\r", "").replace("\n", System.lineSeparator()),
|
||||
stringWriter.toString().replace("\r", "").replace("\n", System.lineSeparator()));
|
||||
String newline = System.getProperty("line.separator");
|
||||
Assert.assertEquals(smaliContents.replace("\r", "").replace("\n", newline),
|
||||
stringWriter.toString().replace("\r", "").replace("\n", newline));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user