/** @deprecated As of release 6.0.0, replaced with * {@link #getAnnotation(String, String)}. */ public Annotation getAnnotation(String annotName) { return getAnnotation(null, annotName); }
private static Location toComponentLocation(Component comp) { if (comp instanceof AbstractComponent) { Annotation anno = ((AbstractComponent) comp).getAnnotation(null, "ZKLOC"); return anno == null ? null : anno.getLocation(); } return null; }