StackTraceLine: remove unnecessary condition

This commit is contained in:
Tagir Valeev
2019-01-14 09:49:15 +07:00
parent e652cc3b6f
commit 7335914298
@@ -64,7 +64,7 @@ public class StackTraceLine {
public int getLineNumber() throws NumberFormatException {
final int close = getCloseBracket();
final int lineNumberStart = myLine.lastIndexOf(':') + 1;
if (close < 0 || lineNumberStart < 1 || lineNumberStart >= close) throw new NumberFormatException(myLine);
if (lineNumberStart < 1 || lineNumberStart >= close) throw new NumberFormatException(myLine);
return Integer.parseInt(myLine.substring(lineNumberStart, close)) - 1;
}