Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.zalando.typemapper.core.fieldMapper;
 
 
 public class DoubleFieldMapper implements FieldMapper {
 
     private static final Logger LOG = LoggerFactory.getLogger(DoubleFieldMapper.class);
 
    @Override
    public Object mapField(final String stringfinal Class clazz) {
        try {
            return string == null ? null : Double.parseDouble(string);
        } catch (NumberFormatException e) {
            .error("Could not convert {} to double."stringe);
        }
        return null;
    }
New to GrepCode? Check out our FAQ X