Use float in canonical form in test code. #1555

Fixes `ConfusingFloatingPointLiteral` inspection violation in test code.

Description:
>Reports any floating point numbers which do not have a decimal point, numbers before the decimal point, and numbers after the decimal point. Such literals may be confusing, and violate several coding standards.
This commit is contained in:
Michal Kordas 2015-08-16 23:10:10 +02:00 committed by Roman Ivanov
parent 77c3f22326
commit 7e1d5d0a2d
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ public class AutomaticBeanTest {
public void testContextualize_InvocationTargetException() {
final TestBean testBean = new TestBean();
DefaultContext context = new DefaultContext();
context.add("exceptionalMethod", 123f);
context.add("exceptionalMethod", 123.0f);
try {
testBean.contextualize(context);
fail();