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:
parent
77c3f22326
commit
7e1d5d0a2d
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue