Fixing warning using annotations strategy