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

Simplify PropertyUtil using Properties.stringPropertyNames()

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

      PropertyUtil should use Properties.stringPropertyNames() (new method in Java 6) instead of Properties.propertyNames() since a Set<String> view of the property names is easier to work with than an Enumeration<?>. The Set<String> view can be used with for-each loops and many of the helper methods in the standard library.

      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