Skip to content

Commit

Permalink
Make SDMXVTLWorkflow Java8 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoLaval committed Jul 26, 2024
1 parent 5c869e7 commit c2b85ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vtl-sdmx/src/main/java/fr/insee/vtl/sdmx/SDMXVTLWorkflow.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ private static String addSemi(String code) {
}

private static String toComment(String comment) {
if (comment == null || comment.isBlank()) {
if (comment == null || comment.trim().isEmpty()) {
return "";
}
return comment.lines().map(s -> "// " + s).collect(Collectors.joining("\n")) + "\n";
return Arrays.stream(comment.split("\n"))
.map(s -> "// " + s).collect(Collectors.joining("\n")) + "\n";
}

private Map<String, String> getRulesets() {
Expand Down

0 comments on commit c2b85ec

Please sign in to comment.