You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Adrian Crum (JIRA)" <ji...@apache.org> on 2010/01/19 15:01:54 UTC

[jira] Reopened: (OFBIZ-3418) Improve UtilProperties.java with a new Method getPropertyNumber which returns an Object of the Number or a defaultObject

     [ https://issues.apache.org/jira/browse/OFBIZ-3418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum reopened OFBIZ-3418:
--------------------------------


Mirko,

Leave the issue open - the person who reviews and commits your patch will close it.

The new method is a good idea. What might make this more intuitive would be to have methods like getPropertyAsInt(...), getPropertyAsLong(...), etc. I have considered adding getPropertyAsBoolean(...) because a lot of settings are true/false.



> Improve UtilProperties.java with a new Method getPropertyNumber which returns an Object of the Number or a defaultObject
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-3418
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3418
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Mirko Vogelsmeier
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: apache_ofbiz_community.patch
>
>   Original Estimate: 0.03h
>  Remaining Estimate: 0.03h
>
> Improvement of UtilProperties.java with a new method which returns the Number as an Object of the specified property name from the specified resource/properties file.
> If the specified property name or properties file is not found, the defaultObject is returned.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.