JAL-3210 Barebones gradle/buildship/eclipse. See README
[jalview.git] / src / jalview / analysis / ParseProperties.java
index 9937a47..4b68d93 100644 (file)
@@ -23,7 +23,6 @@ package jalview.analysis;
 import jalview.datamodel.AlignmentAnnotation;
 import jalview.datamodel.AlignmentI;
 import jalview.datamodel.SequenceI;
-import jalview.util.Platform;
 
 import com.stevesoft.pat.Regex;
 
@@ -91,7 +90,7 @@ public class ParseProperties
           String[] ScoreDescriptions, String regex, boolean repeat)
   {
     int count = 0;
-    Regex pattern = Platform.newRegex(regex, null);
+    Regex pattern = new Regex(regex);
     if (pattern.numSubs() > ScoreNames.length)
     {
       // Check that we have enough labels and descriptions for any parsed
@@ -135,7 +134,7 @@ public class ParseProperties
           double score = Double.NaN;
           try
           {
-            score = new Double(sstring).doubleValue();
+            score = Double.valueOf(sstring).doubleValue();
           } catch (Exception e)
           {
             // don't try very hard to parse if regex was wrong.