// chains in structure have a mapping to data in the structure
List<SequenceFeature> prev = null;
int lastp = -1;
- for (int col = 1; col <= sq.getLength(); col++)
+ for (int col = 1, ns = sq.getLength(); col <= ns; col++)
{
List<SequenceFeature> sf = sq.findFeatures(col, col, "RESNUM");
if (sf.size() != 1)
{
- errors.append(
- str.id + ": " +
- "Expected one feature at column (position): "
- + (col - 1)
- + " (" + sq.findPosition(col - 1) + ")"
- + ": saw "
- + sf.size());
+ errors.append(str.id + ": "
+ + "Expected one feature at column (position): "
+ + (col - 1) + " (" + sq.findPosition(col - 1) + ")"
+ + ": saw " + sf.size());
errors.append("\n");
if (prev != null)
{