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:
b197f60
)
JAL-98 small efficiency fix + commenting
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 25 Oct 2016 09:01:11 +0000
(10:01 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 25 Oct 2016 09:01:11 +0000
(10:01 +0100)
src/jalview/analysis/ResidueCount.java
patch
|
blob
|
history
diff --git
a/src/jalview/analysis/ResidueCount.java
b/src/jalview/analysis/ResidueCount.java
index
cd35206
..
256dbc2
100644
(file)
--- a/
src/jalview/analysis/ResidueCount.java
+++ b/
src/jalview/analysis/ResidueCount.java
@@
-494,6
+494,11
@@
public class ResidueCount
}
}
}
+
+ /*
+ * include 'other' characters recorded (even if count is zero
+ * though that would be a strange use case)
+ */
if (otherData != null)
{
size += otherData.size();
@@
-510,8
+515,9
@@
public class ResidueCount
*/
public SymbolCounts getSymbolCounts()
{
- char[] symbols = new char[size()];
- int[] values = new int[size()];
+ int size = size();
+ char[] symbols = new char[size];
+ int[] values = new int[size];
int j = 0;
if (useIntCounts)