Skip to content

Commit 7dfe58d

Browse files
authored
[2.x] Remove redundant conversions (#1673)
1 parent 406c79c commit 7dfe58d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

internal/compiler-bridge-test/src/test/scala/sbt/internal/inc/CompilingSpecification.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ trait CompilingSpecification extends AbstractBridgeProviderTestkit {
8282

8383
def extractBinaryClassNamesFromSrc(src: String): Set[(String, String)] = {
8484
val (Seq(tempSrcFile), analysisCallback) = compileSrcs(src)
85-
analysisCallback.classNames(tempSrcFile).toSet
85+
analysisCallback.classNames(tempSrcFile)
8686
}
8787

8888
/**

internal/zinc-apiinfo/src/main/scala/sbt/internal/inc/ClassToAPI.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ object ClassToAPI {
427427
val pa = paramAnnots.lazyZip(paramTypes).lazyZip(isVarArg).map {
428428
case (a, p, v) => parameter(a, p, v)
429429
}
430-
val params = api.ParameterList.of(pa.toArray, false)
430+
val params = api.ParameterList.of(pa, false)
431431
val ret = retType match { case Some(rt) => reference(rt); case None => Empty }
432432
api.Def.of(
433433
name,

internal/zinc-scripted/src/test/scala/sbt/internal/inc/IncHandler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ case class ProjectStructure(
681681
): Analysis = {
682682
import i._
683683
val sources = scalaSources ++ javaSources
684-
val vs = sources.toList.map(converter.toVirtualFile)
684+
val vs = sources.map(converter.toVirtualFile)
685685
val entryLookup = new PerClasspathEntryLookupImpl(lookupAnalysis, Locate.definesClass)
686686
val reporter = new ManagedLoggedReporter(maxErrors, scriptedLog)
687687
val extra = Array(t2(("key", "value")))

project/Scripted.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ object Scripted {
2525
val pairMap = pairs.groupBy(_._1).mapValues(_.map(_._2).toSet);
2626

2727
val id = charClass(c => !c.isWhitespace && c != '/').+.string
28-
val groupP = token(id.examples(pairMap.keySet.toSet)) <~ token('/')
28+
val groupP = token(id.examples(pairMap.keySet)) <~ token('/')
2929

3030
// A parser for page definitions
3131
val pageP: Parser[ScriptedTestPage] = ("*" ~ NatBasic ~ "of" ~ NatBasic) map {

0 commit comments

Comments
 (0)