private static Annotation getSomeJAXBAnnotation(Annotation[] annotations) { for( Annotation a : annotations ) if(isJAXBAnnotation(a)) return a; return null; }
/** * Makes sure that the method doesn't have any annotation, if it does, * report it as an error */ private void ensureNoAnnotation(M method) { Annotation[] annotations = reader().getAllMethodAnnotations(method,this); for( Annotation a : annotations ) { if(isJAXBAnnotation(a)) { builder.reportError(new IllegalAnnotationException( Messages.ANNOTATION_ON_WRONG_METHOD.format(), a)); return; } } }
private static Annotation getSomeJAXBAnnotation(Annotation[] annotations) { for( Annotation a : annotations ) if(isJAXBAnnotation(a)) return a; return null; }
/** * Makes sure that the method doesn't have any annotation, if it does, * report it as an error */ private void ensureNoAnnotation(M method) { Annotation[] annotations = reader().getAllMethodAnnotations(method,this); for( Annotation a : annotations ) { if(isJAXBAnnotation(a)) { builder.reportError(new IllegalAnnotationException( Messages.ANNOTATION_ON_WRONG_METHOD.format(), a)); return; } } }
private static Annotation getSomeJAXBAnnotation(Annotation[] annotations) { for( Annotation a : annotations ) if(isJAXBAnnotation(a)) return a; return null; }
private static Annotation getSomeJAXBAnnotation(Annotation[] annotations) { for( Annotation a : annotations ) if(isJAXBAnnotation(a)) return a; return null; }
/** * Makes sure that the method doesn't have any annotation, if it does, * report it as an error */ private void ensureNoAnnotation(M method) { Annotation[] annotations = reader().getAllMethodAnnotations(method,this); for( Annotation a : annotations ) { if(isJAXBAnnotation(a)) { builder.reportError(new IllegalAnnotationException( Messages.ANNOTATION_ON_WRONG_METHOD.format(), a)); return; } } }
/** * Makes sure that the method doesn't have any annotation, if it does, * report it as an error */ private void ensureNoAnnotation(M method) { Annotation[] annotations = reader().getAllMethodAnnotations(method,this); for( Annotation a : annotations ) { if(isJAXBAnnotation(a)) { builder.reportError(new IllegalAnnotationException( Messages.ANNOTATION_ON_WRONG_METHOD.format(), a)); return; } } }