JAL-2216 finalize call super.finalize()
[jalview.git] / src / com / stevesoft / pat / CustomEndpoint.java
index b8fc704..bf122b7 100755 (executable)
@@ -1,27 +1,44 @@
-//\r
-// This software is now distributed according to\r
-// the Lesser Gnu Public License.  Please see\r
-// http://www.gnu.org/copyleft/lesser.txt for\r
-// the details.\r
-//    -- Happy Computing!\r
-//\r
-package com.stevesoft.pat;\r
-import java.util.Hashtable;\r
-\r
-/** This class is needed internally to make backtracking work\r
-  * correctly in user-defined patterns.\r
-  */\r
-class CustomEndpoint extends Pattern {\r
-    Custom c;\r
-    CustomEndpoint(Custom cm) { c = cm; }\r
-    public int matchInternal(int pos,Pthings pt) {\r
-        int npos = c.v.validate(pt.src,c.start,pos);\r
-        if(npos >= 0) \r
-            return nextMatch(npos,pt);\r
-        return -1;\r
-    }\r
-    public String toString() { return ""; }\r
-    Pattern clone1(Hashtable h) {\r
-        return new CustomEndpoint((Custom)c.clone(h));\r
-    }\r
-}\r
+//
+// This software is now distributed according to
+// the Lesser Gnu Public License.  Please see
+// http://www.gnu.org/copyleft/lesser.txt for
+// the details.
+//    -- Happy Computing!
+//
+package com.stevesoft.pat;
+
+import java.util.Hashtable;
+
+/**
+ * This class is needed internally to make backtracking work correctly in
+ * user-defined patterns.
+ */
+class CustomEndpoint extends Pattern
+{
+  Custom c;
+
+  CustomEndpoint(Custom cm)
+  {
+    c = cm;
+  }
+
+  public int matchInternal(int pos, Pthings pt)
+  {
+    int npos = c.v.validate(pt.src, c.start, pos);
+    if (npos >= 0)
+    {
+      return nextMatch(npos, pt);
+    }
+    return -1;
+  }
+
+  public String toString()
+  {
+    return "";
+  }
+
+  Pattern clone1(Hashtable h)
+  {
+    return new CustomEndpoint((Custom) c.clone(h));
+  }
+}