Skip to content

Commit 5cedc48

Browse files
committed
Make package object -Xsource:3 friendly
1 parent 93528af commit 5cedc48

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

library/src/scala/sys/process/package.scala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
// scala -J-Dscala.process.debug
1515
// for process debugging output.
1616
//
17-
package scala.sys {
17+
package scala.sys
18+
package process
1819
/** This package handles the execution of external processes. The contents of
1920
* this package can be divided in three groups, according to their
2021
* responsibilities:
@@ -204,7 +205,8 @@ package scala.sys {
204205
* - `destroy()`: this will kill the external process and close the streams
205206
* associated with it.
206207
*/
207-
package object process extends ProcessImplicits {
208+
@annotation.nowarn("msg=package object inheritance")
209+
object `package` extends ProcessImplicits {
208210
/** The input stream of this process */
209211
def stdin = java.lang.System.in
210212
/** The output stream of this process */
@@ -216,7 +218,6 @@ package scala.sys {
216218
// if (isWin) Array("cmd.exe", "/C", _)
217219
// else Array("sh", "-c", _)
218220

219-
package process {
220221
// These are in a nested object instead of at the package level
221222
// due to the issues described in tickets #3160 and #3836.
222223
private[process] object processInternal {
@@ -257,5 +258,3 @@ package scala.sys {
257258
Console.println("[process] " + (msgs mkString " "))
258259
}
259260
}
260-
}
261-
}

0 commit comments

Comments
 (0)