File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -130,16 +130,16 @@ private[scala] trait PropertiesTrait {
130
130
131
131
/* Some derived values. */
132
132
/** Returns `true` iff the underlying operating system is a version of Microsoft Windows. */
133
- def isWin = osName startsWith " Windows"
133
+ lazy val isWin = osName. startsWith( " Windows" )
134
134
// See https://mail.openjdk.java.net/pipermail/macosx-port-dev/2012-November/005148.html for
135
135
// the reason why we don't follow developer.apple.com/library/mac/#technotes/tn2002/tn2110.
136
136
/** Returns `true` iff the underlying operating system is a version of Apple Mac OSX. */
137
- def isMac = osName startsWith " Mac OS X"
137
+ lazy val isMac = osName. startsWith( " Mac OS X" )
138
138
/** Returns `true` iff the underlying operating system is a Linux distribution. */
139
- def isLinux = osName startsWith " Linux"
139
+ lazy val isLinux = osName. startsWith( " Linux" )
140
140
141
141
/* Some runtime values. */
142
- private [scala] def isAvian = javaVmName contains " Avian"
142
+ private [scala] lazy val isAvian = javaVmName. contains( " Avian" )
143
143
144
144
private [scala] def coloredOutputEnabled : Boolean = propOrElse(" scala.color" , " auto" ) match {
145
145
case " auto" => System .console() != null && ! isWin
You can’t perform that action at this time.
0 commit comments