Skip to content

Commit 38d4846

Browse files
committed
Fix for JDK 11+
1 parent 269d945 commit 38d4846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/stainless/utils/StringUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ object StringUtils {
77

88
def indent(text: String, spaces: Int): String = {
99
val prefix = " " * spaces
10-
text.lines.map(prefix ++ _).mkString("\n")
10+
text.linesIterator.map(prefix ++ _).mkString("\n")
1111
}
1212

1313
}

0 commit comments

Comments
 (0)