boon/src/main/java/org/boon/validation/RecursiveDescentPropertyValidator.java
private void ifPropertyBlankRemove( Map<String, Object> properties, String property ) {

        Object object = properties.get( property );
        if ( object == null ) {
            properties.remove( property );
        } else if ( object instanceof String ) {
            String string = ( String ) object;
            if ( "".equals( string.trim() ) ) {
                properties.remove( property );
            }
        }
    }
private void ifPropertyBlankRemove( Map<String, Object> properties, String property ) {

        Object object = properties.get( property );
        if ( object == null ) {
            properties.remove( property );
        } else if ( object instanceof String ) {
            String string = ( String ) object;
            if ( "".equals( string.trim() ) ) {
                properties.remove( property );
            }
        }
    }
private void ifPropertyBlankRemove ( Map < String , Object > properties , String property ) { Object object = properties . get ( property ) ; if ( object == null ) { properties . remove ( property ) ; } else if ( object instanceof String ) { String string = ( String ) object ; if ( "" . equals ( string . trim ( ) ) ) { properties . remove ( property ) ; } } }
Removes a property if it is null or an empty string.
This allows the property to have a null or emtpy string in the
meta-data but we don't copy it to the validator if the property
is not set.

@param properties properties
@param property   property
Removes a property if it is null or an empty string . This allows the property to have a null or emtpy string in the meta - data but we don t copy it to the validator if the property is not set .