From c279995cddcb14ebc1c5d8fd90fc1661a18bc582 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Sun, 16 Jul 2017 17:38:58 -0400 Subject: [PATCH] Fixes source-dependencies / transitive-memberRef --- notes/1.0.0.markdown | 1 + .../source-dependencies/transitive-memberRef/build.sbt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notes/1.0.0.markdown b/notes/1.0.0.markdown index eded6bdef..c69125e1c 100644 --- a/notes/1.0.0.markdown +++ b/notes/1.0.0.markdown @@ -45,6 +45,7 @@ The Scala Center is working with Lightbend to provide [an automatic migration to - Java classes under the `xsbti.compile` package such as `IncOptions` hides the constructor. Use the factory method `xsbti.compile.Foo.of(...)`. - Renames `ivyScala: IvyScala` to `scalaModuleInfo: ScalaModuleInfo`. - `xsbti.Reporter#log(...)` takes `xsbti.Problem` as the parameter. Call `log(problem.position, problem.message, problem.severity)` to delegate to the older `log(...)`. +- `xsbi.Maybe`, `xsbti.F0`, and `sxbti.F1` are changed to corresponding Java 8 classes `java.util.Optional`, `java.util.Supplier` and `java.util.Function`. #### Features diff --git a/sbt/src/sbt-test/source-dependencies/transitive-memberRef/build.sbt b/sbt/src/sbt-test/source-dependencies/transitive-memberRef/build.sbt index 952a2288d..2314d142d 100644 --- a/sbt/src/sbt-test/source-dependencies/transitive-memberRef/build.sbt +++ b/sbt/src/sbt-test/source-dependencies/transitive-memberRef/build.sbt @@ -1,5 +1,4 @@ import sbt.internal.inc.Analysis -import xsbti.Maybe import xsbti.compile.{PreviousResult, CompileAnalysis, MiniSetup} logLevel := Level.Debug @@ -8,7 +7,7 @@ logLevel := Level.Debug previousCompile in Compile := { val previous = (previousCompile in Compile).value if (!CompileState.isNew) { - val res = new PreviousResult(none[CompileAnalysis].asJava, none[MiniSetup].asJava) + val res = PreviousResult.of(none[CompileAnalysis].asJava, none[MiniSetup].asJava) CompileState.isNew = true res } else previous