Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Deprecated Usage Of String#lines Method
In JDK11 a method on `String` was added named `lines` which returned a `java.util.stream.Stream`. This collided with the enrichment method from Scala's `StringOps` class by the same name which returned an `Iterator`. The result, for metals, is that it was not possible to build metals using JDK11 or greater. This commit uses the new enrichment method `linesIterator` which was added to the Scala standard library as a replacement. This now enables metals to compile on JDK11. See: scala/bug#11125
- Loading branch information