Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1546

fix wrong code for sample

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • java-chassis-2.0.0
    • Java-Chassis
    • None

    Description

      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

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lan.liang lan.liang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m