Uploaded image for project: 'JSword'
  1. JSword
  2. JS-136 Require Java 5
  3. JS-145

Create a type safe replacement for Properties

    Details

    • Type: Sub-task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6.1
    • Component/s: o.c.common.util
    • Labels:
      None

      Description

      Properties only allows String as key and as Value when properly used. However, one can use any Object for the key or the value. This is inappropriate from a type checking perspective. It should use String instead.

      Add
      PropertyMap extends LinkedHashMap<String,String>
      as a replacement for
      Properties extends Hashtable<Object,Object>
      This will need to implement the characteristics of Properties:

      • Default chaining
      • getProperty(key, default)
      • save and load

        Attachments

          Activity

            People

            • Assignee:
              dmsmith DM Smith
              Reporter:
              dmsmith DM Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: