JAL-1479 commented out DBRef fetching code from SIFTS to test applet build
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 23 Nov 2015 18:04:25 +0000 (18:04 +0000)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 23 Nov 2015 18:04:25 +0000 (18:04 +0000)
src/jalview/ws/sifts/SiftsClient.java

index 106a66e..c205e9e 100644 (file)
@@ -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)