private long getInteger(Object property, int defaultValue) {
        if (property instanceof Number) {
            return ((Number) property).longValue();
        }
        if (property instanceof String) {
            try {
                return Long.parseLong((String) property);
            } catch (NumberFormatException nfe) {
                // We don't care then...
                LOGGER.debug("can't parse property as integer: {}", property, nfe);
            }
        }
        return defaultValue;
    }
private long getInteger ( Object property , int defaultValue ) { if ( property instanceof Number ) { return ( ( Number ) property ) . longValue ( ) ; } if ( property instanceof String ) { try { return Long . parseLong ( ( String ) property ) ; } catch ( NumberFormatException nfe ) { LOGGER . debug ( "can't parse property as integer: {}" , property , nfe ) ; } } return defaultValue ; }
@param property
@param defaultValue
@return