Project

General

Profile

Revision 58d4b580

ID58d4b5803b15e56d1f89a07ff5deffc9d1b96176
Parent e1958cb8
Child 18561886

Added by Cherian Mathew over 7 years ago

added boundary check on accuracy

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/dto/NameCatalogueController.java
447 447
        	mv.addObject(er);
448 448
            return mv;
449 449
        }
450
        
451
        if(acc < 0.0 || acc >= 1.0) {
452
        	ErrorResponse er = new ErrorResponse();
453
        	er.setErrorMessage("accuracy should be >= 0.0 and < 1.0");
454
        	mv.addObject(er);
455
            return mv;
456
        }
450 457
        // search through each query
451 458
        for (String query : queries) {
452 459
        	if(query.equals("")) {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)