Derby
  1. Derby
  2. DERBY-5015

Use Arrays.fill() in client/am/ResultSet.java

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 10.8.1.2
    • Fix Version/s: 10.8.1.2
    • Component/s: Network Client
    • Labels:
      None
    • Issue & fix info:
      Patch Available

      Description

      client/am/ResultSet.java uses Arrays.fill() to clear arrays in some cases, but I noticed a couple of places where it still uses for loops to clear the arrays. The code would become a tiny bit simpler if Arrays.fill() was used these other places too.

      1. fill.diff
        1 kB
        Knut Anders Hatlen

        Activity

        Hide
        Knut Anders Hatlen added a comment -

        Revision: 1069354
        Author: kahatlen
        Date: 2011-02-10 13:19
        Message: #DERBY-5015: Use Arrays.fill() in client/am/ResultSet.java

        Show
        Knut Anders Hatlen added a comment - Revision: 1069354 Author: kahatlen Date: 2011-02-10 13:19 Message: # DERBY-5015 : Use Arrays.fill() in client/am/ResultSet.java
        Hide
        Knut Anders Hatlen added a comment -

        The attached patch replaces three for loops with calls to Arrays.fill(). All the regression tests ran cleanly.

        Show
        Knut Anders Hatlen added a comment - The attached patch replaces three for loops with calls to Arrays.fill(). All the regression tests ran cleanly.

          People

          • Assignee:
            Knut Anders Hatlen
            Reporter:
            Knut Anders Hatlen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development