Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6292

Use Arrays.copyOf() in FormatableArrayHolder.getArray()

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 10.11.1.1
    • 10.11.1.1
    • Services
    • None
    • Low

    Description

      FormatableArrayHolder.getArray() creates an array of the correct type using reflection and copies it manually. Java 6 introduced a copyOf() method in java.util.Arrays that could do all of this automatically. Now that Java 6 is the minimum level on trunk, we could take advantage of the library method and simplify the code.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment