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:
parent
d3dcf0474a
commit
3db243d947
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue