Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove usage of lazy

  • Loading branch information...
commit 0ba39eaeeca0e0090d8a36d6a6ce3f16dcc595cd 1 parent 5d3b13b
@zauberpony authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/scala/net/aerospaceresearch/jplparser/DataReader.scala
View
4 src/main/scala/net/aerospaceresearch/jplparser/DataReader.scala
@@ -38,7 +38,7 @@ object DataReader {
*/
class DataReader {
// all masses in Si-unit "kg"
- lazy val masses = Map(
+ val masses = Map(
Mercury -> BigDecimal("3.3022E23"),
Venus -> BigDecimal("4.869E24"),
Earth_Moon_Barycenter -> BigDecimal("6.045678E24"),
@@ -74,7 +74,7 @@ class DataReader {
ephemerisServiceCache.getOrElseUpdate(pointInTime, JplParser.generateService(headerContent, dataContent(pointInTime)))
}
- lazy val headerContent = {
+ val headerContent = {
val headerSource = io.Source.fromFile(s"$folderName/$headerFile")
val headerContent = headerSource.getLines mkString "\n"
headerSource.close()
Please sign in to comment.
Something went wrong with that request. Please try again.