From: amwaterhouse Date: Fri, 18 Nov 2005 10:24:38 +0000 (+0000) Subject: Parse name from last index of / X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=063129ea3d5722927b76ff7b139fdfb71049647c;p=jalview.git Parse name from last index of / --- diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index 0002200..df7345a 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -58,14 +58,12 @@ public class Sequence implements SequenceI public Sequence(String name, String sequence, int start, int end) { this.name = name; + this.sequence = sequence; this.start = start; this.end = end; parseId(); - this.sequence = sequence; - - checkValidRange(); } @@ -114,7 +112,7 @@ public class Sequence implements SequenceI // If we're still in this loop, parsing of start and end was ok // Therefore remove it from the sequence name - name = name.substring(0, name.indexOf("/")); + name = name.substring(0, name.lastIndexOf("/")); } catch (NumberFormatException ex) {