summaryrefslogtreecommitdiff
path: root/src/library/scala/Unit.scala
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2013-07-29 16:16:38 +0200
committerSimon Ochsenreither <simon@ochsenreither.de>2013-08-15 13:16:02 +0200
commitf670e28d4da648511063c6825905c4960ee94445 (patch)
treec231d86582e3e09c7ba3f300098a131a1de8366f /src/library/scala/Unit.scala
parent91fcafe282c5e9e1a45638247a480d1f215a504f (diff)
downloadscala-f670e28d4da648511063c6825905c4960ee94445.tar.gz
scala-f670e28d4da648511063c6825905c4960ee94445.tar.bz2
scala-f670e28d4da648511063c6825905c4960ee94445.zip
SI-7624 Fix -Xlint warnings in AnyVal-related code
The changes are actually pretty small: scala.language.implicitConversions is moved around so that it is only emitted to the source file if there is an actual implicit conversion. The rest of the diff are mostly the new generated source files reflecting that change.
Diffstat (limited to 'src/library/scala/Unit.scala')
-rw-r--r--src/library/scala/Unit.scala9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/library/scala/Unit.scala b/src/library/scala/Unit.scala
index 0e59a184d1..018ad24a99 100644
--- a/src/library/scala/Unit.scala
+++ b/src/library/scala/Unit.scala
@@ -6,12 +6,12 @@
** |/ **
\* */
-// DO NOT EDIT, CHANGES WILL BE LOST.
+// DO NOT EDIT, CHANGES WILL BE LOST
+// This auto-generated code can be modified in scala.tools.cmd.gen.
+// Afterwards, running tools/codegen-anyvals regenerates this source file.
package scala
-import scala.language.implicitConversions
-
/** `Unit` is a subtype of [[scala.AnyVal]]. There is only one value of type
* `Unit`, `()`, and it is not represented by any object in the underlying
@@ -41,8 +41,7 @@ object Unit extends AnyValCompanion {
*/
def unbox(x: java.lang.Object): Unit = ()
- /** The String representation of the scala.Unit companion object.
- */
+ /** The String representation of the scala.Unit companion object. */
override def toString = "object scala.Unit"
}