JAL-3210 Improvements to eclipse detection. New src tree and SwingJS updated from...
[jalview.git] / src / com / stevesoft / pat / Regex.java
index 6d07427..455f040 100755 (executable)
@@ -16,6 +16,7 @@ import java.util.Hashtable;
 
 import com.stevesoft.pat.wrap.StringWrap;
 
+
 /** Matches a Unicode punctuation character. */
 class UnicodePunct extends UniValidator
 {
@@ -306,6 +307,7 @@ class UnicodeLower extends UniValidator
  */
 public class Regex extends RegRes implements FilenameFilter
 {
+
   /**
    * BackRefOffset gives the identity number of the first pattern. Version 1.0
    * used zero, version 1.1 uses 1 to be more compatible with perl.
@@ -1095,16 +1097,13 @@ public class Regex extends RegRes implements FilenameFilter
   {
     try
     {
-      return getClass().getDeclaredConstructor().newInstance();
+      return getClass().newInstance();
     } catch (InstantiationException ie)
     {
       return null;
     } catch (IllegalAccessException iae)
     {
       return null;
-    } catch (ReflectiveOperationException roe)
-    {
-      return null;
     }
   }