SteNicholas commented on a change in pull request #12161:
URL: https://github.com/apache/shardingsphere/pull/12161#discussion_r700388625
##########
File path:
shardingsphere-mode/shardingsphere-mode-core/src/test/java/org/apache/shardingsphere/mode/persist/service/impl/DataSourcePersistServiceTest.java
##########
@@ -61,7 +61,7 @@ public void assertLoad() {
@SneakyThrows({IOException.class, URISyntaxException.class})
private String readDataSourceYaml(final String path) {
return
Files.readAllLines(Paths.get(ClassLoader.getSystemResource(path).toURI()))
- .stream().filter(each -> StringUtils.isNotBlank(each) &&
!each.startsWith("#")).map(each -> each +
System.lineSeparator()).collect(Collectors.joining());
+ .stream().filter(each -> StringUtils.isNotBlank(each) &&
!each.startsWith("#")).map(each -> each + "\n").collect(Collectors.joining());
Review comment:
It shouldn't be fixed here. `System.lineSeparator()` does return the
line separator, it will return the corresponding line separator according to
the current computer system. Or you could try to use the
`System.getProperty("line.separator")`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]