Skip to content

Port generateSources to Scala 3 Library #23705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions library/src/scala/Boolean.scala
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ final abstract class Boolean private extends AnyVal {

object Boolean extends AnyValCompanion {

/** Transform a value type into a boxed reference type.
/** Transforms a value type into a boxed reference type.
*
* Runtime implementation determined by `scala.runtime.BoxesRunTime.boxToBoolean`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
*
Expand All @@ -123,7 +123,7 @@ object Boolean extends AnyValCompanion {
*/
def box(x: Boolean): java.lang.Boolean = ???

/** Transform a boxed type into a value type. Note that this
/** Transforms a boxed type into a value type. Note that this
* method is not typesafe: it accepts any Object, but will throw
* an exception if the argument is not a java.lang.Boolean.
*
Expand Down
4 changes: 2 additions & 2 deletions library/src/scala/Byte.scala
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ object Byte extends AnyValCompanion {
/** The largest value representable as a Byte. */
final val MaxValue = java.lang.Byte.MAX_VALUE

/** Transform a value type into a boxed reference type.
/** Transforms a value type into a boxed reference type.
*
* Runtime implementation determined by `scala.runtime.BoxesRunTime.boxToByte`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
*
Expand All @@ -464,7 +464,7 @@ object Byte extends AnyValCompanion {
*/
def box(x: Byte): java.lang.Byte = ???

/** Transform a boxed type into a value type. Note that this
/** Transforms a boxed type into a value type. Note that this
* method is not typesafe: it accepts any Object, but will throw
* an exception if the argument is not a java.lang.Byte.
*
Expand Down
4 changes: 2 additions & 2 deletions library/src/scala/Char.scala
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ object Char extends AnyValCompanion {
/** The largest value representable as a Char. */
final val MaxValue = java.lang.Character.MAX_VALUE

/** Transform a value type into a boxed reference type.
/** Transforms a value type into a boxed reference type.
*
* Runtime implementation determined by `scala.runtime.BoxesRunTime.boxToCharacter`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
*
Expand All @@ -464,7 +464,7 @@ object Char extends AnyValCompanion {
*/
def box(x: Char): java.lang.Character = ???

/** Transform a boxed type into a value type. Note that this
/** Transforms a boxed type into a value type. Note that this
* method is not typesafe: it accepts any Object, but will throw
* an exception if the argument is not a java.lang.Character.
*
Expand Down
4 changes: 2 additions & 2 deletions library/src/scala/Double.scala
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ object Double extends AnyValCompanion {
/** The largest finite positive number representable as a Double. */
final val MaxValue = java.lang.Double.MAX_VALUE

/** Transform a value type into a boxed reference type.
/** Transforms a value type into a boxed reference type.
*
* Runtime implementation determined by `scala.runtime.BoxesRunTime.boxToDouble`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
*
Expand All @@ -239,7 +239,7 @@ object Double extends AnyValCompanion {
*/
def box(x: Double): java.lang.Double = ???

/** Transform a boxed type into a value type. Note that this
/** Transforms a boxed type into a value type. Note that this
* method is not typesafe: it accepts any Object, but will throw
* an exception if the argument is not a java.lang.Double.
*
Expand Down
4 changes: 2 additions & 2 deletions library/src/scala/Float.scala
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ object Float extends AnyValCompanion {
/** The largest finite positive number representable as a Float. */
final val MaxValue = java.lang.Float.MAX_VALUE

/** Transform a value type into a boxed reference type.
/** Transforms a value type into a boxed reference type.
*
* Runtime implementation determined by `scala.runtime.BoxesRunTime.boxToFloat`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
*
Expand All @@ -239,7 +239,7 @@ object Float extends AnyValCompanion {
*/
def box(x: Float): java.lang.Float = ???

/** Transform a boxed type into a value type. Note that this
/** Transforms a boxed type into a value type. Note that this
* method is not typesafe: it accepts any Object, but will throw
* an exception if the argument is not a java.lang.Float.
*
Expand Down
2 changes: 1 addition & 1 deletion library/src/scala/Function0.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

// GENERATED CODE: DO NOT EDIT.
// genprod generated these sources at: 2022-01-17T20:47:12.170348200Z
// genprod generated these sources at: 2025-08-11T16:29:31.823591209Z

package scala

Expand Down
4 changes: 2 additions & 2 deletions library/src/scala/Int.scala
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ object Int extends AnyValCompanion {
/** The largest value representable as an Int. */
final val MaxValue = java.lang.Integer.MAX_VALUE

/** Transform a value type into a boxed reference type.
/** Transforms a value type into a boxed reference type.
*
* Runtime implementation determined by `scala.runtime.BoxesRunTime.boxToInteger`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
*
Expand All @@ -464,7 +464,7 @@ object Int extends AnyValCompanion {
*/
def box(x: Int): java.lang.Integer = ???

/** Transform a boxed type into a value type. Note that this
/** Transforms a boxed type into a value type. Note that this
* method is not typesafe: it accepts any Object, but will throw
* an exception if the argument is not a java.lang.Integer.
*
Expand Down
4 changes: 2 additions & 2 deletions library/src/scala/Long.scala
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ object Long extends AnyValCompanion {
/** The largest value representable as a Long. */
final val MaxValue = java.lang.Long.MAX_VALUE

/** Transform a value type into a boxed reference type.
/** Transforms a value type into a boxed reference type.
*
* Runtime implementation determined by `scala.runtime.BoxesRunTime.boxToLong`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
*
Expand All @@ -461,7 +461,7 @@ object Long extends AnyValCompanion {
*/
def box(x: Long): java.lang.Long = ???

/** Transform a boxed type into a value type. Note that this
/** Transforms a boxed type into a value type. Note that this
* method is not typesafe: it accepts any Object, but will throw
* an exception if the argument is not a java.lang.Long.
*
Expand Down
4 changes: 2 additions & 2 deletions library/src/scala/Short.scala
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ object Short extends AnyValCompanion {
/** The largest value representable as a Short. */
final val MaxValue = java.lang.Short.MAX_VALUE

/** Transform a value type into a boxed reference type.
/** Transforms a value type into a boxed reference type.
*
* Runtime implementation determined by `scala.runtime.BoxesRunTime.boxToShort`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
*
Expand All @@ -464,7 +464,7 @@ object Short extends AnyValCompanion {
*/
def box(x: Short): java.lang.Short = ???

/** Transform a boxed type into a value type. Note that this
/** Transforms a boxed type into a value type. Note that this
* method is not typesafe: it accepts any Object, but will throw
* an exception if the argument is not a java.lang.Short.
*
Expand Down
4 changes: 2 additions & 2 deletions library/src/scala/Unit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final abstract class Unit private extends AnyVal {
@scala.annotation.compileTimeOnly("`Unit` companion object is not allowed in source; instead, use `()` for the unit value")
object Unit extends AnyValCompanion {

/** Transform a value type into a boxed reference type.
/** Transforms a value type into a boxed reference type.
*
* This method is not intended for use in source code.
* The runtime representation of this value is platform specific.
Expand All @@ -41,7 +41,7 @@ object Unit extends AnyValCompanion {
*/
def box(x: Unit): scala.runtime.BoxedUnit = scala.runtime.BoxedUnit.UNIT

/** Transform a boxed type into a value type. Note that this
/** Transforms a boxed type into a value type. Note that this
* method is not typesafe: it accepts any Object, but will throw
* an exception if the argument is not a scala.runtime.BoxedUnit.
*
Expand Down
Loading
Loading