Complaining about non-static inner class injection