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

Consolidate duplicate code in BigInteger and MutableBigInteger

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8
    • core-libs
    • None

      BigInteger and MutableBigInteger contain a certain amount of very similar code. For example, the BigInteger methods add(int[],int[]), multiplyToLen(), and subtract(int[],int[]) are very similar to the MutableBigInteger methods add(), multiply(), and subtract(), respectively. For each of these operations it might, e.g., be feasible to create a static method which accepts int array parameters and to invoke this static method from the respective analogs in BigInteger and MutableBigInteger.

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: