diff options
author | Simon Schaefer <mail@antoras.de> | 2013-09-25 21:44:24 +0200 |
---|---|---|
committer | Simon Schaefer <mail@antoras.de> | 2013-09-25 21:47:05 +0200 |
commit | f64de5fcd0b9d16205d8c96c3c789f4c50aafb22 (patch) | |
tree | 8f5e9eaeab6a9aee77d003067901a5168b0e0499 /src/compiler | |
parent | bda48577d022811be58ce2b7f9e46890543ad45b (diff) | |
download | scala-f64de5fcd0b9d16205d8c96c3c789f4c50aafb22.tar.gz scala-f64de5fcd0b9d16205d8c96c3c789f4c50aafb22.tar.bz2 scala-f64de5fcd0b9d16205d8c96c3c789f4c50aafb22.zip |
Remove octal escape literals from the codebase
Octal escape literals are deprecated and will be removed in the
next Scala version.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/CompileServer.scala | 2 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/CompileSocket.scala | 2 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/Erasure.scala | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/CompileServer.scala b/src/compiler/scala/tools/nsc/CompileServer.scala index c5366566d9..6f068e179c 100644 --- a/src/compiler/scala/tools/nsc/CompileServer.scala +++ b/src/compiler/scala/tools/nsc/CompileServer.scala @@ -85,7 +85,7 @@ class StandardCompileServer extends SocketServer { if (input == null || password != guessedPassword) return - val args = input.split("\0", -1).toList + val args = input.split("\u0000", -1).toList val newSettings = new FscSettings(fscError) val command = new OfflineCompilerCommand(args, newSettings) this.verbose = newSettings.verbose.value diff --git a/src/compiler/scala/tools/nsc/CompileSocket.scala b/src/compiler/scala/tools/nsc/CompileSocket.scala index 88d5c31b5d..c4f06b59ec 100644 --- a/src/compiler/scala/tools/nsc/CompileSocket.scala +++ b/src/compiler/scala/tools/nsc/CompileSocket.scala @@ -24,7 +24,7 @@ trait HasCompileSocket { sock.applyReaderAndWriter { (in, out) => out println (compileSocket getPassword sock.getPort()) - out println (args mkString "\0") + out println (args mkString "\u0000") def loop(): Boolean = in.readLine() match { case null => noErrors diff --git a/src/compiler/scala/tools/nsc/transform/Erasure.scala b/src/compiler/scala/tools/nsc/transform/Erasure.scala index 31855bc1ad..28db6a4f6d 100644 --- a/src/compiler/scala/tools/nsc/transform/Erasure.scala +++ b/src/compiler/scala/tools/nsc/transform/Erasure.scala @@ -88,7 +88,7 @@ abstract class Erasure extends AddInterfaces // more rigorous way up front rather than catching it after the fact, // but that will be more involved. private def dotCleanup(sig: String): String = { - var last: Char = '\0' + var last: Char = '\u0000' sig map { case '.' if last != '>' => last = '.' ; '$' case ch => last = ch ; ch |