inline temp 内联临时变量

double basePrice = order.getPrice();

return basePrice;

 

改成 return  order.getPrice(); 去掉临时无用的临时变量

posted @ 2018-05-28 22:25  yangming0322  阅读(172)  评论(0编辑  收藏  举报