git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d6bdfa
)
AnnotationId is hashcode of object
author
amwaterhouse
<Andrew Waterhouse>
Fri, 26 Jan 2007 17:31:51 +0000
(17:31 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 26 Jan 2007 17:31:51 +0000
(17:31 +0000)
src/jalview/datamodel/AlignmentAnnotation.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/AlignmentAnnotation.java
b/src/jalview/datamodel/AlignmentAnnotation.java
index
6803e9f
..
6dcf23b
100755
(executable)
--- a/
src/jalview/datamodel/AlignmentAnnotation.java
+++ b/
src/jalview/datamodel/AlignmentAnnotation.java
@@
-31,7
+31,7
@@
public class AlignmentAnnotation
* eg consensus, quality or conservation graphs */
public boolean autoCalculated = false;
- public String annotationId = Math.random() +"";
+ public String annotationId;
public SequenceI sequenceRef;
@@
-160,6
+160,7
@@
public class AlignmentAnnotation
}
+ annotationId = this.hashCode()+"";
}
/**
@@
-293,9
+294,11
@@
public class AlignmentAnnotation
int startRes,
boolean alreadyMapped)
{
+
if(seqRef == null)
return;
+
sequenceMapping = new java.util.Hashtable();
sequenceRef = seqRef;
@@
-314,7
+317,6
@@
public class AlignmentAnnotation
}
}
- adjustForAlignment();
}
public void adjustForAlignment()