@@ -149,7 +149,7 @@ object Plugins {
149
149
type OrderingReq = (Set [Class [_]], Set [Class [_]])
150
150
151
151
val orderRequirements = MMap [Class [_], OrderingReq ]()
152
- val primitivePhases = plan.flatMap(ps => ps.map(_.getClass. asInstanceOf [ Class [_] ])).toSet
152
+ val primitivePhases = plan.flatMap(ps => ps.map(_.getClass : Class [_])).toSet
153
153
154
154
def isPrimitive (phase : Class [_]): Boolean = primitivePhases.contains(phase)
155
155
@@ -239,19 +239,19 @@ object Plugins {
239
239
var runsAfter = runsAfter1 & insertedPhase
240
240
val runsBefore = runsBefore1 & insertedPhase
241
241
242
- // beforeReq met after the split
242
+ // runsBefore met after the split
243
243
val (before, after) = updatedPlan.span { ps =>
244
244
val classes = ps.map(_.getClass)
245
245
val runsAfterSat = runsAfter.isEmpty
246
246
runsAfter = runsAfter -- classes
247
- // Prefer the point immediately before the first beforePhases .
248
- // If beforePhases not specified, insert at the point immediately
247
+ // Prefer the point immediately before the first runsBefore .
248
+ // If runsBefore not specified, insert at the point immediately
249
249
// after the last afterPhases.
250
250
! classes.exists(runsBefore.contains) &&
251
251
! (runsBefore.isEmpty && runsAfterSat)
252
252
}
253
253
254
- // check afterReq
254
+ // check runsAfter
255
255
// error can occur if: a < b, b < c, c < a
256
256
after.foreach { ps =>
257
257
val classes = ps.map(_.getClass)
0 commit comments