This is an automated email from the git hooks/post-receive script. tmancill pushed a commit to branch dev in repository jabref.
commit 51454b466a3698405c7157ecfc05aeea0bc162a9 Author: tony mancill <[email protected]> Date: Sun Nov 27 22:58:57 2016 -0800 patch SpringerLink for unirest + libandroid-json-java --- debian/patches/unirest_json.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/debian/patches/unirest_json.patch b/debian/patches/unirest_json.patch index d23dfac..78b1e23 100644 --- a/debian/patches/unirest_json.patch +++ b/debian/patches/unirest_json.patch @@ -38,3 +38,22 @@ URLConnection connection = new URL(JABREF_GITHUB_URL).openConnection(); connection.setRequestProperty("Accept-Charset", "UTF-8"); BufferedReader rd = new BufferedReader(new InputStreamReader(connection.getInputStream())); +--- a/src/main/java/net/sf/jabref/logic/importer/fetcher/SpringerLink.java ++++ b/src/main/java/net/sf/jabref/logic/importer/fetcher/SpringerLink.java +@@ -17,6 +17,7 @@ + import org.apache.commons.logging.Log; + import org.apache.commons.logging.LogFactory; + import org.json.JSONObject; ++import org.json.JSONException; + + /** + * FulltextFetcher implementation that attempts to find a PDF URL at SpringerLink. +@@ -53,7 +54,7 @@ + LOGGER.info("Fulltext PDF found @ Springer."); + pdfLink = Optional.of(new URL("http", CONTENT_HOST, String.format("/content/pdf/%s.pdf", doi.get().getDOI()))); + } +- } catch(UnirestException e) { ++ } catch(UnirestException | JSONException e) { + LOGGER.warn("SpringerLink API request failed", e); + } + } -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jabref.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

