diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-29 08:36:39 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-04-01 23:35:35 -0400 |
commit | e7a21be0ca3cf7152b5798317fff346220caae32 (patch) | |
tree | 542a04bb1f3c55913fdc1b90d1e20f2e7bb636fb /stage1/Stage1Lib.scala | |
parent | ec29b9f38711b2bb33b51e9bc220c17c7d09fcce (diff) | |
download | cbt-e7a21be0ca3cf7152b5798317fff346220caae32.tar.gz cbt-e7a21be0ca3cf7152b5798317fff346220caae32.tar.bz2 cbt-e7a21be0ca3cf7152b5798317fff346220caae32.zip |
make .scala sources 2.12 compatible
Diffstat (limited to 'stage1/Stage1Lib.scala')
-rw-r--r-- | stage1/Stage1Lib.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stage1/Stage1Lib.scala b/stage1/Stage1Lib.scala index 392b885..1698621 100644 --- a/stage1/Stage1Lib.scala +++ b/stage1/Stage1Lib.scala @@ -314,9 +314,10 @@ ${sourceFiles.sorted.mkString(" \\\n")} .map( dejavafy ) .orElse{ (cacheFile.exists && cacheFile.lastModified > cbtLastModified).option{ - import collection.JavaConversions._ + import collection.JavaConverters._ val v = Files .readAllLines( cacheFile.toPath, StandardCharsets.UTF_8 ) + .asScala .toStream .map( deserialize ) persistentCache.put(key, Array(System.currentTimeMillis:java.lang.Long, javafy(v))) |