ilrt / caboto

Automatically exported from code.google.com/p/caboto
Other
0 stars 1 forks source link

Minor bug in caboto validation #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
AnnotationValidator.java:

if (bodyValues == null || bodyValues.size() == 0) {
   errors.rejectValue(...);
                            }
// also check that there is at least one value
boolean passed = false;
for(String val: bodyValues) {

Note that bodyValues could be null and it will still check for at 
least one value.

Original issue reported on code.google.com by pl...@mac.com on 27 Jan 2010 at 11:28