Reports cases when the dynamic invocation could be replaced with a constructor invocation.
Example:
import akka.actor._
class Foo(foo: String, bar: Int) extends AbstractActor
object Foo {
def props(foo: String, bar: Int): Props = Props(classOf[Foo], foo, bar)
}
Foo.props("foo", 42)
After the quick-fix is applied:
import akka.actor._
class Foo(foo: String, bar: Int) extends AbstractActor
object Foo {
def props(foo: String, bar: Int): Props = Props(new Foo(foo, bar))
}
Foo.props("foo", 42)