2
Fork 0

[svn r269] removed some small bugs, for empty annotations collumns

This commit is contained in:
willemc 2007-08-08 21:02:56 +02:00
parent 8439348458
commit b1f6e870a3
5 changed files with 41 additions and 9 deletions

View file

@ -139,15 +139,19 @@ public class VascAnnotationParser {
if(property==null) {
Annotation anno = beanClass.getAnnotation(annotationType);
if (anno==null) {
return null; // no annotion avaible
// no annotion avaible
if (noAnnotationNullReturn) {
return null;
}
} else {
result = doAnnotation(anno);
if(result!=null) {
return result;
}
if (noAnnotationNullReturn) {
return null;
}
}
result = doAnnotation(anno);
if(result!=null) {
return result;
}
if (noAnnotationNullReturn) {
return null;
}
return beanClass.getName()+"."+annotationType.getSimpleName();
}
@ -188,6 +192,9 @@ public class VascAnnotationParser {
}
private Object doAnnotation(Annotation b) {
if (b==null) {
return null;
}
Class a = b.annotationType();
if (a.equals(VascName.class)) {