]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8520 Make schema dumper cross-platform
authorphilippe-perrin-sonarsource <philippe.perrin@sonarsource.com>
Mon, 12 Aug 2019 11:47:54 +0000 (13:47 +0200)
committerSonarTech <sonartech@sonarsource.com>
Wed, 14 Aug 2019 18:21:11 +0000 (20:21 +0200)
server/sonar-db-dao/src/test/java/org/sonar/db/dump/SQSchemaDumper.java

index 601fa7ed4904652dde580a3b52dd8bfbdf6cfb62..6ed9ed3819b0cf35d623f40562525ea9c20c37a3 100644 (file)
@@ -31,7 +31,7 @@ import org.sonar.db.SQDatabase;
 import static com.google.common.base.Preconditions.checkState;
 
 class SQSchemaDumper {
-  private static final String LINE_SEPARATOR = "\n";
+  private static final String LINE_SEPARATOR = System.lineSeparator();
   private static final String HEADER = "" +
     "###############################################################" + LINE_SEPARATOR +
     "####  Description of SonarQube's schema in H2 SQL syntax   ####" + LINE_SEPARATOR +