どちらが良いですか?
@SuppressWarnings("unchecked")
@SuppressWarnings(AnnotationConstants.UNCHECKED)
AnnotationConstants
典型的な定数クラスはどこにありますか...
public final class AnnotationConstants {
private AnnotationConstants() { }
public static final String UNCHECKED = "unchecked";
...
}
定数クラスには賛否両論の一般的な議論がたくさんあることは知っていますが、それはまさに私が興味を持っていないことです。特に注釈用の定数クラスが良い考えか悪い考えかを知りたいです。