@@ -218,7 +218,7 @@ object TreeTransforms {
218
218
* i <= j
219
219
* j == transforms.length || transform(j) defines a non-default method with given `name`
220
220
*/
221
- private def index (transformations : Array [Class [_ <: TreeTransform ]], name : String ): Array [Int ] = {
221
+ private def index (transformations : Array [Class [_]], name : String ): Array [Int ] = {
222
222
val len = transformations.length
223
223
val next = new Array [Int ](len + 1 )
224
224
var nextTransform : Int = len
@@ -240,7 +240,7 @@ object TreeTransforms {
240
240
next
241
241
}
242
242
243
- private def indexUpdate (prev : Array [Int ], changedTansformation : Class [_ <: TreeTransform ], index : Int , name : String , copy : Boolean = true ) = {
243
+ private def indexUpdate (prev : Array [Int ], changedTansformation : Class [_], index : Int , name : String , copy : Boolean = true ) = {
244
244
val isDefinedNow = hasRedefinedMethod(changedTansformation, name)
245
245
val wasDefinedBefore = prev(index) == index
246
246
if (isDefinedNow == wasDefinedBefore) prev
@@ -259,7 +259,7 @@ object TreeTransforms {
259
259
}
260
260
}
261
261
262
- def this (transformations : Array [Class [_ <: TreeTransform ]]) = {
262
+ def this (transformations : Array [Class [_]]) = {
263
263
this ()
264
264
nxPrepIdent = index(transformations, " prepareForIdent" )
265
265
nxPrepSelect = index(transformations, " prepareForSelect" )
@@ -330,7 +330,7 @@ object TreeTransforms {
330
330
}
331
331
332
332
def this (transformations : Array [TreeTransform ]) = {
333
- this (transformations.map(_.getClass))
333
+ this (transformations.map(_.getClass). asInstanceOf [ Array [ Class [_]]] )
334
334
}
335
335
336
336
def this (prev : NXTransformations , changedTansformation : TreeTransform , transformationIndex : Int , reuse : Boolean = false ) = {
0 commit comments