What's better?
@SuppressWarnings("unchecked")@SuppressWarnings(AnnotationConstants.UNCHECKED)
Where AnnotationConstantsis a typical class of constants ...
public final class AnnotationConstants {
private AnnotationConstants() { }
public static final String UNCHECKED = "unchecked";
...
}
I know that there are many common arguments for classes of constants and against them - and that’s exactly what I'm not interested in . I want to know if the class of constants is really for annotations, a good idea or a bad idea.
source
share