[jsword-devel] [JIRA] Resolved: (JS-145) Create a type safe replacement for Properties

DM Smith (JIRA) jira at crosswire.org
Sat Jan 1 16:16:15 MST 2011


     [ http://www.crosswire.org/bugs/browse/JS-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

DM Smith resolved JS-145.
-------------------------

    Resolution: Fixed

Added PropertyMap.java.

> Create a type safe replacement for Properties
> ---------------------------------------------
>
>                 Key: JS-145
>                 URL: http://www.crosswire.org/bugs/browse/JS-145
>             Project: JSword
>          Issue Type: Sub-task
>          Components: o.c.common.util
>    Affects Versions: 1.6
>            Reporter: DM Smith
>            Assignee: DM Smith
>             Fix For: 1.6.1
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.crosswire.org/bugs/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jsword-devel mailing list