X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2Fvamsas%2FDatastoreRegistry.java;h=b53de080bd13a9e29c7398d848a159b3b4966ceb;hb=fce1dd217a498f97f794c622b3651a33b8210932;hp=c8277289af631319ab1ffb83e3eb0dc5e3bfaf68;hpb=db93a1adcbe0a4eaaf06e0a70ade0d6c5c1961c3;p=jalview.git diff --git a/src/jalview/io/vamsas/DatastoreRegistry.java b/src/jalview/io/vamsas/DatastoreRegistry.java index c827728..b53de08 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.0b2) - * 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,7 +24,7 @@ import java.util.IdentityHashMap; import java.util.Iterator; import java.util.Map; -public class DatastoreRegistry +public class DatastoreRegistry implements AutoCloseable { protected static org.apache.log4j.Logger log = org.apache.log4j.Logger .getLogger(DatastoreRegistry.class); @@ -153,7 +153,7 @@ public class DatastoreRegistry } @Override - protected void finalize() throws Throwable + public void close() { if (dsObjReg != null) { @@ -172,6 +172,6 @@ public class DatastoreRegistry { dsItemReg.clear(); } - super.finalize(); + // super.finalize(); } }