this.field = field;
}
private void assertValidAnnotations() {
FindBys findBys = field.getAnnotation(FindBys.class);
FindBy myFindBy = field.getAnnotation(FindBy.class);
if (findBys != null && myFindBy != null) {
throw new IllegalArgumentException("If you use a '@FindBys' annotation, "
+ "you must not also use a '@FindBy' annotation");
}
}