Fix deprecated replaceAll and replaceFirst usages in stdlib tests and tools.
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ abstract class BaseGradleIT {
|
||||
listOf("/bin/bash", "./gradlew") + tailParameters
|
||||
}
|
||||
|
||||
private fun String.normalize() = this.replaceAll("\r\n", "\n").replaceAll("\n", SYSTEM_LINE_SEPARATOR)
|
||||
private fun String.normalize() = this.lineSequence().join(SYSTEM_LINE_SEPARATOR)
|
||||
|
||||
private fun isWindows(): Boolean {
|
||||
return System.getProperty("os.name")!!.contains("Windows")
|
||||
|
||||
Reference in New Issue
Block a user