mirror of https://github.com/sbt/sbt.git
2.9 compatibility for incremental compilation modules
This commit is contained in:
parent
4c1c31e190
commit
71f12fbcdb
|
|
@ -7,7 +7,6 @@ import xsbti.api
|
||||||
import xsbti.SafeLazy
|
import xsbti.SafeLazy
|
||||||
import SafeLazy.strict
|
import SafeLazy.strict
|
||||||
import collection.mutable
|
import collection.mutable
|
||||||
import scala.reflect.ClassTag
|
|
||||||
|
|
||||||
object ClassToAPI
|
object ClassToAPI
|
||||||
{
|
{
|
||||||
|
|
@ -19,7 +18,7 @@ object ClassToAPI
|
||||||
}
|
}
|
||||||
|
|
||||||
// Avoiding implicit allocation.
|
// Avoiding implicit allocation.
|
||||||
private def arrayMap[T <: AnyRef, U <: AnyRef : ClassTag](xs: Array[T])(f: T => U): Array[U] = {
|
private def arrayMap[T <: AnyRef, U <: AnyRef : ClassManifest](xs: Array[T])(f: T => U): Array[U] = {
|
||||||
val len = xs.length
|
val len = xs.length
|
||||||
var i = 0
|
var i = 0
|
||||||
val res = new Array[U](len)
|
val res = new Array[U](len)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue