Java annotations have been replaced with Scala ones