Skip to content

Commit

Permalink
Extract print_environment_properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jultty committed Nov 14, 2023
1 parent 4bb466f commit e429440
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/scala/Main.scala
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import scala.util.Properties

@main def hello: Unit =
print_environment_properties

def print_environment_properties: Unit =
println(s"Scala Library version ${Properties.versionNumberString}")
println(s"Development version: " +
s"${Properties.developmentVersion.getOrElse("N/A")} " +
s"Release version: ${Properties.releaseVersion.getOrElse("N/A")}"
)
println(
s"${Properties.javaVmVendor} " +
s"${Properties.javaVmName} " +
Expand Down

0 comments on commit e429440

Please sign in to comment.