JAL-3210 Barebones gradle/buildship/eclipse. See README
[jalview.git] / src / jalview / ws / dbsources / EmblSource.java
index ec75b04..6bbe2e1 100644 (file)
@@ -22,7 +22,6 @@ package jalview.ws.dbsources;
 
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.DBRefSource;
-import jalview.util.Platform;
 
 import com.stevesoft.pat.Regex;
 
@@ -33,8 +32,6 @@ import com.stevesoft.pat.Regex;
 public class EmblSource extends EmblXmlSource
 {
 
-  private static Regex ACCESSION_REGEX;
-
   public EmblSource()
   {
     super();
@@ -60,11 +57,7 @@ public class EmblSource extends EmblXmlSource
   @Override
   public Regex getAccessionValidator()
   {
-    if (ACCESSION_REGEX == null)
-    {
-      ACCESSION_REGEX = Platform.newRegex("^[A-Z]+[0-9]+", null);
-    }
-    return ACCESSION_REGEX;
+    return new Regex("^[A-Z]+[0-9]+");
   }
 
   /*