Add argument to exception constructor invocation. #1555

Fixes `NewExceptionWithoutArguments` inspection violation.

Description:
>Reports exception instance creation without any arguments specified. When an exception is constructed without arguments it contains no information about the fault that happened, which makes debugging needlessly hard.
This commit is contained in:
Michal Kordas 2015-08-27 00:13:34 +02:00 committed by Roman Ivanov
parent 55c92042eb
commit 8e168c23bd
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ public class IndentationCheckTest extends BaseCheckTestSupport {
|| indentInComment < expectedMinimalIndent && isWarnComment;
}
throw new IllegalStateException();
throw new IllegalStateException("Comments are not consistent");
}
private static int getLineStart(String line, final int tabWidth) {