Returns the Integer value of the system property identified by string. Returns null if string is null or empty, if the property can not be found or if its value can not be parsed as an integer. @param string the name of the requested system propert
(String string)
| 208 | * {@code null}. |
| 209 | */ |
| 210 | public static Integer getInteger(String string) { |
| 211 | if (string == null || string.length() == 0) { |
| 212 | return null; |
| 213 | } |
| 214 | String prop = System.getProperty(string); |
| 215 | if (prop == null) { |
| 216 | return null; |
| 217 | } |
| 218 | try { |
| 219 | return decode(prop); |
| 220 | } catch (NumberFormatException ex) { |
| 221 | return null; |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * Returns the {@code Integer} value of the system property identified by |
nothing calls this directly
no test coverage detected