mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
non-negative range asserted
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user