* @param markerClass
* the marker annotation class
*/
public static void validateMarkerAnnotation(Class markerClass)
{
Retention policy = (Retention) markerClass.getAnnotation(Retention.class);
if (policy != null && policy.value() == RetentionPolicy.RUNTIME)
return;
throw new IllegalArgumentException(UtilMessages.badMarkerAnnotation(markerClass));
}