X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FParseProperties.java;fp=src%2Fjalview%2Fanalysis%2FParseProperties.java;h=9937a4729e4ad7d93de8f40748561e59ab879e8c;hb=a83adb45bdf9554e270921b4baad94defd314b36;hp=4b68d93a666340d0fd6539fc3f1f2f0bcae26464;hpb=d4ec118f86b5c9dee801e743c46aaacc7bb521d1;p=jalview.git diff --git a/src/jalview/analysis/ParseProperties.java b/src/jalview/analysis/ParseProperties.java index 4b68d93..9937a47 100644 --- a/src/jalview/analysis/ParseProperties.java +++ b/src/jalview/analysis/ParseProperties.java @@ -23,6 +23,7 @@ package jalview.analysis; import jalview.datamodel.AlignmentAnnotation; import jalview.datamodel.AlignmentI; import jalview.datamodel.SequenceI; +import jalview.util.Platform; import com.stevesoft.pat.Regex; @@ -90,7 +91,7 @@ public class ParseProperties String[] ScoreDescriptions, String regex, boolean repeat) { int count = 0; - Regex pattern = new Regex(regex); + Regex pattern = Platform.newRegex(regex, null); if (pattern.numSubs() > ScoreNames.length) { // Check that we have enough labels and descriptions for any parsed @@ -134,7 +135,7 @@ public class ParseProperties double score = Double.NaN; try { - score = Double.valueOf(sstring).doubleValue(); + score = new Double(sstring).doubleValue(); } catch (Exception e) { // don't try very hard to parse if regex was wrong.