private List<NetworkFailure> getFailures(String document) { if (!TextUtils.isEmpty(document)) { try { return JsonUtils.fromJson(document, NetworkFailureList.class).getList(); } catch (IOException ioe) { Log.w(TAG, ioe); } } return new LinkedList<>(); }
private List<IdentityKeyMismatch> getMismatchedIdentities(String document) { if (!TextUtils.isEmpty(document)) { try { return JsonUtils.fromJson(document, IdentityKeyMismatchList.class).getList(); } catch (IOException e) { Log.w(TAG, e); } } return new LinkedList<>(); }