You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "liubao (Jira)" <ji...@apache.org> on 2019/10/28 01:29:00 UTC

[jira] [Updated] (SCB-1546) fix wrong code for sample

     [ https://issues.apache.org/jira/browse/SCB-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

liubao updated SCB-1546:
------------------------
    Fix Version/s: java-chassis-2.0.0

> fix wrong code for sample
> -------------------------
>
>                 Key: SCB-1546
>                 URL: https://issues.apache.org/jira/browse/SCB-1546
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Java-Chassis
>            Reporter: lan.liang
>            Priority: Minor
>             Fix For: java-chassis-2.0.0
>
>
> have some wrong code in org.apache.servicecomb.samples.bmi.CalculatorServiceImpl#roundToOnePrecision
> return new BigDecimal.valueOf(value).setScale(1, RoundingMode.HALF_UP).doubleValue();
> valueOf is a static method
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)