Use String instead of constant in test code. #1555

Fixes `NumericToString` inspection violations in test code.

Description:
>Reports any call of toString() on numeric objects. Such calls are usually incorrect in an internationalized environment.
This commit is contained in:
Michal Kordas 2015-08-20 21:11:47 +02:00 committed by Roman Ivanov
parent d3dcf0474a
commit 3db243d947
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public class AvoidNestedBlocksCheckTest
throws Exception {
final DefaultConfiguration checkConfig =
createCheckConfig(AvoidNestedBlocksCheck.class);
checkConfig.addAttribute("allowInSwitchCase", Boolean.TRUE.toString());
checkConfig.addAttribute("allowInSwitchCase", "true");
final String[] expected = {
"22:9: " + getCheckMessage(MSG_KEY_BLOCK_NESTED),