X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2Fvamsas%2FDatastoreRegistry.java;h=fe5a917f9c35c555673c18b20ef814bb8b5ec0c6;hb=a1984b1c8c273ed33c7ce9283039f4027dcae2de;hp=2879889c2d5135bfa7f72b47ade9ee25ac3bf630;hpb=4d7f98a6dd54d9863ba449ec79dcd95d25ed863d;p=jalview.git diff --git a/src/jalview/io/vamsas/DatastoreRegistry.java b/src/jalview/io/vamsas/DatastoreRegistry.java index 2879889..fe5a917 100644 --- a/src/jalview/io/vamsas/DatastoreRegistry.java +++ b/src/jalview/io/vamsas/DatastoreRegistry.java @@ -24,10 +24,12 @@ import java.util.IdentityHashMap; import java.util.Iterator; import java.util.Map; -public class DatastoreRegistry +import jalview.log.JLoggerLog4j; + +public class DatastoreRegistry implements AutoCloseable { - protected static org.apache.log4j.Logger log = org.apache.log4j.Logger - .getLogger(DatastoreRegistry.class); + protected static JLoggerLog4j log = JLoggerLog4j + .getLogger(DatastoreRegistry.class.getCanonicalName()); /** * map between Datastore objects and the objects they are handling- used to @@ -152,7 +154,8 @@ public class DatastoreRegistry return dsregitem; } - protected void finalize() + @Override + public void close() { if (dsObjReg != null) { @@ -171,5 +174,6 @@ public class DatastoreRegistry { dsItemReg.clear(); } + // super.finalize(); } }