mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-04 21:01:21 +08:00
Merge pull request #2793 from anivanovic/wrong_line_separator
Append system default new line when generating code.
This commit is contained in:
commit
8c900c99cf
@ -93,7 +93,7 @@ public abstract class AbstractCodeWriter<T extends AbstractCodeWriter<T>> implem
|
||||
|
||||
@Override
|
||||
public T nl() throws IOException {
|
||||
return append("\n");
|
||||
return append(System.lineSeparator());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -55,7 +55,7 @@ public class JavaWriterTest {
|
||||
textBuilder.append((char) c);
|
||||
}
|
||||
}
|
||||
String expected = textBuilder.toString().replace("\r\n", "\n").trim();
|
||||
String expected = textBuilder.toString().replace("\r\n", System.lineSeparator()).trim();
|
||||
String actual = text.trim();
|
||||
assertEquals(expected, actual);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user