From: zapata Date: Fri, 7 Feb 2003 14:43:52 +0000 (+0000) Subject: Fixed the breaking news deletion bug, this time for real X-Git-Tag: BEFORE_MERGE_1_1~267 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=deb3e88724e4a07771ddd8551722231590cb1412;p=mir.git Fixed the breaking news deletion bug, this time for real --- diff --git a/source/mircoders/storage/DatabaseBreaking.java b/source/mircoders/storage/DatabaseBreaking.java index cde6e067..83184ba7 100755 --- a/source/mircoders/storage/DatabaseBreaking.java +++ b/source/mircoders/storage/DatabaseBreaking.java @@ -48,7 +48,7 @@ public class DatabaseBreaking extends Database implements StorageObject{ // the following *has* to be sychronized cause this static method // could get preemted and we could end up with 2 instances of DatabaseFoo.. // see the "Singletons with needles and thread" article at JavaWorld -mh - public synchronized static DatabaseBreaking getInstance() + public synchronized static DatabaseBreaking getInstance() throws StorageObjectFailure { if (instance == null) { instance = new DatabaseBreaking(); @@ -62,10 +62,6 @@ public class DatabaseBreaking extends Database implements StorageObject{ super(); //this.cache = new DatabaseCache(4); this.theTable="breaking"; - try { - this.theEntityClass = Class.forName("mircoders.entity.EntityBreaking"); - } - catch (Exception e) { throw new StorageObjectFailure(e); } }