git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-1270 JUnit to TestNG refactoring
[jalview.git]
/
src
/
jalview
/
io
/
AlignmentProperties.java
diff --git
a/src/jalview/io/AlignmentProperties.java
b/src/jalview/io/AlignmentProperties.java
index
88e3814
..
cb4b7ad
100644
(file)
--- a/
src/jalview/io/AlignmentProperties.java
+++ b/
src/jalview/io/AlignmentProperties.java
@@
-1,6
+1,6
@@
/*
/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2b1)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
*
* This file is part of Jalview.
*
@@
-20,8
+20,8
@@
*/
package jalview.io;
*/
package jalview.io;
-import java.io.StringWriter;
import java.io.PrintWriter;
import java.io.PrintWriter;
+import java.io.StringWriter;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Enumeration;
import java.util.Hashtable;
@@
-61,11
+61,15
@@
public class AlignmentProperties
- alignment.getSequenceAt(i).getStart();
avg += size;
if (size > max)
- alignment.getSequenceAt(i).getStart();
avg += size;
if (size > max)
+ {
max = size;
max = size;
+ }
if (size < min)
if (size < min)
+ {
min = size;
min = size;
+ }
}
}
- avg = avg / (float) alignment.getHeight();
+ avg = avg / alignment.getHeight();
pw.print(nl);
pw.print("Sequences: " + alignment.getHeight());
pw.print(nl);
pw.print(nl);
pw.print("Sequences: " + alignment.getHeight());
pw.print(nl);