[jabref] 04/05: patch SpringerFetcher for unirest + libandroid-json-java

Tony Mancill tmancill at moszumanska.debian.org
Tue Nov 29 04:08:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

tmancill pushed a commit to branch dev
in repository jabref.

commit ffb8de5d06e14d71484def86dffd23f2e374ff28
Author: tony mancill <tmancill at debian.org>
Date:   Mon Nov 28 20:01:51 2016 -0800

    patch SpringerFetcher 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 5e5d206..f45a9cf 100644
--- a/debian/patches/unirest_json.patch
+++ b/debian/patches/unirest_json.patch
@@ -151,3 +151,22 @@
          //append the remaining URL
          bibtexQueryURLStringBuf.append(URL_BIBTEX_END);
  
+--- a/src/main/java/net/sf/jabref/gui/importer/fetcher/SpringerFetcher.java
++++ b/src/main/java/net/sf/jabref/gui/importer/fetcher/SpringerFetcher.java
+@@ -20,6 +20,7 @@
+     import org.apache.commons.logging.Log;
+     import org.apache.commons.logging.LogFactory;
+     import org.json.JSONArray;
++    import org.json.JSONException;
+     import org.json.JSONObject;
+ 
+ public class SpringerFetcher implements EntryFetcher {
+@@ -102,7 +103,7 @@
+                         Localization.lang("Search %0", getTitle()), JOptionPane.INFORMATION_MESSAGE);
+                 return false;
+             }
+-        } catch (UnirestException e) {
++        } catch (UnirestException | JSONException e) {
+             LOGGER.warn("Problem searching Springer", e);
+         } catch (UnsupportedEncodingException e) {
+             LOGGER.warn("Cannot encode query", e);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jabref.git



More information about the pkg-java-commits mailing list