Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-745

BigDecimalScores should ignore trailing zeros in equals/hashcode: HardSoftBigDecimalScore -1.200hard/-3.40soft should equal -1.2hard/-3.4soft

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.Beta7
    • 7.0.0.Beta6
    • optaplanner-core
    • None
    • NEW
    • NEW

      Advantages:

      • Score corruption detection in assert mode
      • Unit tests equals of scores (but not of individual weights as BigDecimal.equals() doesn't change)

      Disadvantages:

      • Differs from BigDecimal.equals() behaviour

            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: