@Test public void testStringToIntegerNonNumeric() { assertEquals(null, JsonUtilJvm.stringToInteger("")); assertEquals(null, JsonUtilJvm.stringToInteger(" ")); assertEquals(null, JsonUtilJvm.stringToInteger("ASD$#@")); }
static Integer stringToInteger(final String val) { try { return Integer.valueOf(val); } catch (NumberFormatException nfe) { LOGGER.info("Unable to convert String to Integer", nfe); return null; } }
JsonUtilJvm { static Integer stringToInteger(final String val) { try { return Integer.valueOf(val); } catch (NumberFormatException nfe) { LOGGER.info("Unable to convert String to Integer", nfe); return null; } } }
JsonUtilJvm { static Integer stringToInteger(final String val) { try { return Integer.valueOf(val); } catch (NumberFormatException nfe) { LOGGER.info("Unable to convert String to Integer", nfe); return null; } } private  JsonUtilJvm(); }
JsonUtilJvm { static Integer stringToInteger(final String val) { try { return Integer.valueOf(val); } catch (NumberFormatException nfe) { LOGGER.info("Unable to convert String to Integer", nfe); return null; } } private  JsonUtilJvm();  }
JsonUtilJvm { static Integer stringToInteger(final String val) { try { return Integer.valueOf(val); } catch (NumberFormatException nfe) { LOGGER.info("Unable to convert String to Integer", nfe); return null; } } private  JsonUtilJvm();   }