From b6a605ef4e4ef09b091b6db56d7aef24c7bf44ef Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Mon, 23 Nov 2015 18:04:25 +0000 Subject: [PATCH] JAL-1479 commented out DBRef fetching code from SIFTS to test applet build --- src/jalview/ws/sifts/SiftsClient.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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) -- 1.7.10.2