@Test(expected=NullPointerException.class) public void stringToDoubleNullTest() { SafeParse.stringToDouble(null); }
public static Double stringToDouble(String input) { Double result = 0d; input = input.replace(",", "."); try { result = Double.parseDouble(input); } catch (Exception e) { } return result; }
SafeParse { public static Double stringToDouble(String input) { Double result = 0d; input = input.replace(",", "."); try { result = Double.parseDouble(input); } catch (Exception e) { } return result; } }
SafeParse { public static Double stringToDouble(String input) { Double result = 0d; input = input.replace(",", "."); try { result = Double.parseDouble(input); } catch (Exception e) { } return result; }  }
SafeParse { public static Double stringToDouble(String input) { Double result = 0d; input = input.replace(",", "."); try { result = Double.parseDouble(input); } catch (Exception e) { } return result; }  static Double stringToDouble(String input); static Integer stringToInt(String input); static Long stringToLong(String input); static Float stringToFloat(String input); }
SafeParse { public static Double stringToDouble(String input) { Double result = 0d; input = input.replace(",", "."); try { result = Double.parseDouble(input); } catch (Exception e) { } return result; }  static Double stringToDouble(String input); static Integer stringToInt(String input); static Long stringToLong(String input); static Float stringToFloat(String input);  }