Skip to content
Permalink
Browse files

Fix weird compile time bug with anonymous functions

  • Loading branch information...
TheTemportalist
TheTemportalist committed Jun 7, 2016
1 parent 6d6093d commit 077c42b8e5e10b2b4eaf7298e1642a65ce9fd4d1
@@ -38,9 +38,11 @@ class AnnotationLoader[C, T](private val annotation: Class[C], private val insta
}
}
this.mapKeys ++= this.classInstances.keySet
this.mapKeys = this.mapKeys.sortWith(_.getSimpleName < _.getSimpleName)
this.mapKeys = this.mapKeys.sortWith(this.keySorter)
}

def keySorter(a: Class[_ <: T], b: Class[_ <: T]): Boolean = a.getSimpleName < b.getSimpleName

def onAnnotationClassFound[I <: T](implementer: Class[I], info: mutable.Map[String, AnyRef]): Unit = {}

final def getClassInstances: Iterable[Class[_ <: T]] = this.mapKeys

0 comments on commit 077c42b

Please sign in to comment.
You can’t perform that action at this time.