* anti-abuse upgrade: filters now stored in the database (experimental)
[mir.git] / source / mircoders / storage / DatabaseBreaking.java
index a0a6849..fe12761 100755 (executable)
@@ -42,12 +42,8 @@ import mir.storage.StorageObjectFailure;
  */
 
 public class DatabaseBreaking extends Database implements StorageObject{
-
   private static DatabaseBreaking instance;
 
-  // 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() throws StorageObjectFailure {
     if (instance == null) {
       instance = new DatabaseBreaking();
@@ -55,12 +51,10 @@ public class DatabaseBreaking extends Database implements StorageObject{
     return instance;
   }
 
-  private DatabaseBreaking() throws StorageObjectFailure
-  {
+  private DatabaseBreaking() throws StorageObjectFailure {
     super();
+
     logger = new LoggerWrapper("Database.Breaking");
-    this.mainTable="breaking";
+    mainTable="breaking";
   }
-
-
 }