Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 4448

Show
Ignore:
Timestamp:
05/28/08 23:10:39 (8 months ago)
Author:
catullus
Message:

sync_bidirectional: Fixed potential number format problem by doing checking first. should backport this.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/data_synchronization_bidirectional/src/api/org/openmrs/patient/impl/VerhoeffIdentifierValidator.java

    r4306 r4448  
    6666        throws UnallowedIdentifierException { 
    6767         
    68         boolean result = super.isValid(identifier); 
    69          
    7068        if(Character.isDigit(identifier.charAt(identifier.length()-1))) 
    7169                throw new UnallowedIdentifierException("Check digit can not be numeric."); 
    7270        if(identifier.length() != VERHOEFF_ID_LENGTH) 
    7371                throw new UnallowedIdentifierException("Identifier must be " + VERHOEFF_ID_LENGTH + " digits long."); 
    74                
    75         return result
     72                               
     73        return super.isValid(identifier)
    7674    } 
    7775    /**