@CheckForNull private <T> T parse(Class<T> type, T instance) throws IOException { return parse(type, instance, 2); }
@CheckForNull private <T> T parse(Class<T> type, T instance) throws IOException { return parse(type, instance, 2); }
T result = parse(type, instance); if (type != null && type.isArray()) { // we might have to loop for pagination - done through recursion final String links = uc.getHeaderField("link");
if (e instanceof SocketTimeoutException && timeouts > 0) { LOGGER.log(INFO, "timed out accessing " + uc.getURL() + "; will try " + timeouts + " more time(s)", e); return parse(type, instance, timeouts - 1);
if (e instanceof SocketTimeoutException && timeouts > 0) { LOGGER.log(INFO, "timed out accessing " + uc.getURL() + "; will try " + timeouts + " more time(s)", e); return parse(type, instance, timeouts - 1);
T result = parse(type, instance); if (type != null && type.isArray()) { // we might have to loop for pagination - done through recursion final String links = uc.getHeaderField("link");
T result = parse(type, instance); if (type != null && type.isArray()) { // we might have to loop for pagination - done through recursion final String links = uc.getHeaderField("link");