[jsword-devel] [JIRA] Created: (JS-145) Create a type safe replacement for Properties
DM Smith (JIRA)
jira at crosswire.org
Fri Dec 10 11:54:20 MST 2010
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