Ah then `@SuppressWarnings("deprecation")` is more appropriate.