merge from 2_4_Release branch
[jalview.git] / src / com / stevesoft / pat / RegSyntaxError.java
index 688c906..1e56122 100755 (executable)
@@ -1,42 +1,40 @@
-//\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
-\r
-/** When enabled, this class is thrown instead of\r
-    the normal RegSyntax.  Thus, enabling of this\r
-    class will make your debugging easier -- but\r
-    if you leave it on and forget to catch RegSyntaxError\r
-    a user-supplied pattern could generate a\r
-    RegSyntaxError that will kill your application.\r
-\r
-    I strongly recommend turning this flag on, however,\r
-    as I think it is more likely to help than to hurt\r
-    your programming efforts.\r
- */\r
-public class RegSyntaxError\r
-    extends Error\r
-{\r
-  public static boolean RegSyntaxErrorEnabled = false;\r
-  public RegSyntaxError()\r
-  {}\r
-\r
-  public RegSyntaxError(String s)\r
-  {\r
-    super(s);\r
-  }\r
-\r
-  final static void endItAll(String s)\r
-      throws RegSyntax\r
-  {\r
-    if (RegSyntaxErrorEnabled)\r
-    {\r
-      throw new RegSyntaxError(s);\r
-    }\r
-    throw new RegSyntax(s);\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;
+
+/**
+ * When enabled, this class is thrown instead of the normal RegSyntax. Thus,
+ * enabling of this class will make your debugging easier -- but if you leave it
+ * on and forget to catch RegSyntaxError a user-supplied pattern could generate
+ * a RegSyntaxError that will kill your application.
+ * 
+ * I strongly recommend turning this flag on, however, as I think it is more
+ * likely to help than to hurt your programming efforts.
+ */
+public class RegSyntaxError extends Error
+{
+  public static boolean RegSyntaxErrorEnabled = false;
+
+  public RegSyntaxError()
+  {
+  }
+
+  public RegSyntaxError(String s)
+  {
+    super(s);
+  }
+
+  final static void endItAll(String s) throws RegSyntax
+  {
+    if (RegSyntaxErrorEnabled)
+    {
+      throw new RegSyntaxError(s);
+    }
+    throw new RegSyntax(s);
+  }
+}