Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8314167

j.text.DigitList can be refactored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-libs
    • Fix Understood
    • generic
    • generic

      While working on other issues which related to DigitList, I found that the current code and organization resulted in taking more time to understand the code than needed.

      The class is quite old and can benefit from
      - Re-organization (related methods should be coupled together)
      - Odd for loops can be replaced with more explicit alternatives
      - rounding logic should be combined
      - modern annotations like (@Override)
      - General comments, splitting up logic into separate methods

            jlu Justin Lu
            jlu Justin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: