X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2Fvamsas%2FDatastoreRegistry.java;h=233685be8be7544e59378678b4ef08c4ffec234a;hb=c8d80485038ab96fb06bd0885c323803646d8e57;hp=b68a726ceb4441fbc077680c15553d734320d5e0;hpb=838e4f91d4a53dd315640dbc9ff6ef7a815ee576;p=jalview.git diff --git a/src/jalview/io/vamsas/DatastoreRegistry.java b/src/jalview/io/vamsas/DatastoreRegistry.java index b68a726..233685b 100644 --- a/src/jalview/io/vamsas/DatastoreRegistry.java +++ b/src/jalview/io/vamsas/DatastoreRegistry.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b1) - * Copyright (C) 2015 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -24,9 +24,11 @@ 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 + protected static JLoggerLog4j log = JLoggerLog4j .getLogger(DatastoreRegistry.class); /** @@ -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(); } }