non-negative range asserted

This commit is contained in:
Dmitry Avdeev
2012-05-18 13:18:26 +04:00
parent e26b7ebd04
commit 9ec6ae66d1
@@ -33,6 +33,7 @@ public class LineRange {
public LineRange(final int startLine, final int endLine) {
this.startLine = startLine;
this.endLine = endLine;
LOG.assertTrue(startLine > 0, "Negative start line");
if (startLine > endLine) {
LOG.error("start > end: start=" + startLine+"; end="+endLine);
}