[code="java"]
public Integer getPrice();
Map params
public static String KEY_PRICE="PRICE";
order.setPrice((Integer)params.get(IConstClient.KEY_PRICE));
[/code]
编译没错,但是用findBug这种类似的工具找出来的bug。 怎么修改?
谢谢
[code="java"]
public Integer getPrice();
Map params
public static String KEY_PRICE="PRICE";
order.setPrice((Integer)params.get(IConstClient.KEY_PRICE));
[/code]
编译没错,但是用findBug这种类似的工具找出来的bug。 怎么修改?
谢谢
[quote]引用
Integer.parseInt(s)
Integer.parseInt(s, radix)
两个方法
这两个方法的参数得是String,他现在是Object的。。[/quote]
Integer.parseInt(o.toString());
Integer.valueOf(o.toString());
:D