while (linesIter.hasNext()) {
final Integer lineNo = (Integer) linesIter.next();
final String line = getLines()[lineNo.intValue() - 1];
String lineBefore = "";
TextBlock comment = null;
if (cppComments.containsKey(lineNo)) {
comment = (TextBlock) cppComments.get(lineNo);
lineBefore = line.substring(0, comment.getStartColNo());
}
else if (cComments.containsKey(lineNo)) {
final List commentList = (List) cComments.get(lineNo);
comment = (TextBlock) commentList.get(commentList.size() - 1);
lineBefore = line.substring(0, comment.getStartColNo());
if (comment.getText().length == 1) {
final String lineAfter =
line.substring(comment.getEndColNo() + 1).trim();
if (!"".equals(lineAfter)) {
// do not check comment which doesn't end line
continue;
}
}