JAL-3210 Improvements to eclipse detection. New src tree and SwingJS updated from...
[jalview.git] / src / jalview / io / vamsas / DatastoreRegistry.java
index b53de08..ff7a764 100644 (file)
@@ -24,7 +24,7 @@ import java.util.IdentityHashMap;
 import java.util.Iterator;
 import java.util.Map;
 
-public class DatastoreRegistry implements AutoCloseable
+public class DatastoreRegistry
 {
   protected static org.apache.log4j.Logger log = org.apache.log4j.Logger
           .getLogger(DatastoreRegistry.class);
@@ -153,7 +153,7 @@ public class DatastoreRegistry implements AutoCloseable
   }
 
   @Override
-  public void close()
+  protected void finalize() throws Throwable
   {
     if (dsObjReg != null)
     {
@@ -172,6 +172,6 @@ public class DatastoreRegistry implements AutoCloseable
     {
       dsItemReg.clear();
     }
-    // super.finalize();
+    super.finalize();
   }
 }