From: tcofoegbu Date: Mon, 23 Nov 2015 18:04:25 +0000 (+0000) Subject: JAL-1479 commented out DBRef fetching code from SIFTS to test applet build X-Git-Tag: Release_2_10_0~336 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b6a605ef4e4ef09b091b6db56d7aef24c7bf44ef;p=jalview.git JAL-1479 commented out DBRef fetching code from SIFTS to test applet build --- diff --git a/src/jalview/ws/sifts/SiftsClient.java b/src/jalview/ws/sifts/SiftsClient.java index 106a66e..c205e9e 100644 --- a/src/jalview/ws/sifts/SiftsClient.java +++ b/src/jalview/ws/sifts/SiftsClient.java @@ -185,12 +185,11 @@ public class SiftsClient implements SiftsClientI */ private Entry parseSIFTs(File siftFile) throws SiftsException { - try + try (InputStream in = new FileInputStream(siftFile); + GZIPInputStream gzis = new GZIPInputStream(in);) { System.out.println("File : " + siftFile.getAbsolutePath()); JAXBContext jc = JAXBContext.newInstance("jalview.xml.binding.sifts"); - InputStream in = new FileInputStream(siftFile); - GZIPInputStream gzis = new GZIPInputStream(in); XMLStreamReader streamReader = XMLInputFactory.newInstance() .createXMLStreamReader(gzis); Unmarshaller um = jc.createUnmarshaller(); @@ -325,10 +324,10 @@ public class SiftsClient implements SiftsClientI DBRefEntry[] dbRefs = seq.getDBRefs(); if (dbRefs == null || dbRefs.length < 1) { - final SequenceI[] seqs = new SequenceI[] { seq }; - new jalview.ws.DBRefFetcher(seqs, null, null, null, false) - .fetchDBRefs(true); - dbRefs = seq.getDBRefs(); + // final SequenceI[] seqs = new SequenceI[] { seq }; + // new jalview.ws.DBRefFetcher(seqs, null, null, null, false) + // .fetchDBRefs(true); + // dbRefs = seq.getDBRefs(); } if (dbRefs == null || dbRefs.length < 1)