(String json)
| 1506 | } |
| 1507 | |
| 1508 | public static Map<String, Object> parseJson(String json) { |
| 1509 | if (json == null) { |
| 1510 | return new HashMap<>(); |
| 1511 | } else { |
| 1512 | try { |
| 1513 | return (Map<String, Object>) JSONValue.parseWithException(json); |
| 1514 | } catch (ParseException e) { |
| 1515 | throw new RuntimeException(e); |
| 1516 | } |
| 1517 | } |
| 1518 | } |
| 1519 | |
| 1520 | public static String memoizedLocalHostname() throws UnknownHostException { |
| 1521 | if (memoizedLocalHostnameString == null) { |
no outgoing calls
no test coverage detected