Skip to content

Commit c705186

Browse files
committed
chore: remove warning about reflectiveCalls
1 parent 5f19fcd commit c705186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/util/Properties.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private[scala] trait PropertiesTrait {
149149

150150
/** System.console.isTerminal, or just check for null console on JDK < 22 */
151151
private[scala] lazy val consoleIsTerminal: Boolean = {
152-
import language.reflectiveCalls
152+
import scala.reflect.Selectable.reflectiveSelectable
153153
val console = System.console
154154
def isTerminal: Boolean =
155155
try console.asInstanceOf[{ def isTerminal(): Boolean }].isTerminal()

0 commit comments

Comments
 (0)