From f1954d9a3570572f5b79511c4eec7b6ceb7a9dd1 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Mon, 19 May 2008 15:30:17 +0000 Subject: Deprecated lower case type aliases for primitiv... Deprecated lower case type aliases for primitive types, #744. --- src/library/scala/Predef.scala | 18 +++++++++--------- src/partest/scala/tools/partest/PartestTask.scala | 4 ++-- src/partest/scala/tools/partest/nest/Worker.scala | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/library/scala/Predef.scala b/src/library/scala/Predef.scala index d27f92094e..39d71c3d94 100644 --- a/src/library/scala/Predef.scala +++ b/src/library/scala/Predef.scala @@ -25,15 +25,15 @@ object Predef { // aliases ------------------------------------------------------------ - type byte = scala.Byte - type short = scala.Short - type char = scala.Char - type int = scala.Int - type long = scala.Long - type float = scala.Float - type double = scala.Double - type boolean = scala.Boolean - type unit = scala.Unit + @deprecated type byte = scala.Byte + @deprecated type short = scala.Short + @deprecated type char = scala.Char + @deprecated type int = scala.Int + @deprecated type long = scala.Long + @deprecated type float = scala.Float + @deprecated type double = scala.Double + @deprecated type boolean = scala.Boolean + @deprecated type unit = scala.Unit /** @deprecated use java.lang.Integer instead */ @deprecated type Integer = java.lang.Integer diff --git a/src/partest/scala/tools/partest/PartestTask.scala b/src/partest/scala/tools/partest/PartestTask.scala index 39e66f5b0c..b2990fb4a5 100644 --- a/src/partest/scala/tools/partest/PartestTask.scala +++ b/src/partest/scala/tools/partest/PartestTask.scala @@ -160,8 +160,8 @@ class PartestTask extends Task { if (!scalacOpts.isEmpty) setFileManagerStringProperty("SCALAC_OPTS", scalacOpts.get) - var allSucesses: int = 0 - var allFailures: int = 0 + var allSucesses: Int = 0 + var allFailures: Int = 0 if (getPosFiles.size > 0) { log("Compiling files that are expected to build") diff --git a/src/partest/scala/tools/partest/nest/Worker.scala b/src/partest/scala/tools/partest/nest/Worker.scala index 983cc0c2c4..58cad347ea 100644 --- a/src/partest/scala/tools/partest/nest/Worker.scala +++ b/src/partest/scala/tools/partest/nest/Worker.scala @@ -71,7 +71,7 @@ class Worker(val fileManager: FileManager) extends Actor { NestUI.normal("[...]"+name+List.toString(List.make(totalWidth-name.length, ' ')), printer) } - def printInfoEnd(success: boolean, printer: PrintWriter) { + def printInfoEnd(success: Boolean, printer: PrintWriter) { NestUI.normal("[", printer) if (success) NestUI.success(" OK ", printer) else NestUI.failure("FAILED", printer) -- cgit v1.2.3