JAL-3438 spotless for 2.11.2.0
[jalview.git] / src / com / stevesoft / pat / Pattern.java
index 543391e..604c23d 100755 (executable)
@@ -7,7 +7,9 @@
 //
 package com.stevesoft.pat;
 
-import java.util.*;
+import jalview.util.MessageManager;
+
+import java.util.Hashtable;
 
 /**
  Shareware: package pat
@@ -259,7 +261,9 @@ public abstract class Pattern
    */
   Pattern clone1(Hashtable h)
   {
-    throw new Error("No such method as clone1 for " + getClass().getName());
+    throw new Error(MessageManager.formatMessage(
+            "error.no_such_method_as_clone1_for", new String[]
+            { getClass().getName() }));
   }
 
   Pattern clone(Hashtable h)
@@ -272,7 +276,7 @@ public abstract class Pattern
     p = clone1(h);
     if (p == null)
     {
-      throw new Error("Null from clone1!");
+      throw new Error(MessageManager.getString("error.null_from_clone1"));
     }
     h.put(this, p);
     h.put(p, p);