You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florian Müller (JIRA)" <ji...@apache.org> on 2010/09/23 17:32:33 UTC

[jira] Commented: (CMIS-252) PropertyIds as Enum

    [ https://issues.apache.org/jira/browse/CMIS-252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914064#action_12914064 ] 

Florian Müller commented on CMIS-252:
-------------------------------------

What's the use case for an enum?

Property Ids are Strings and only used as Strings all over the place. Replacing all occurrences of (for example) PropertyIds.NAME with PropertyIds.NAME.value() adds unnecessary clutter to the code and unnecessary overhead at runtime.

> PropertyIds as Enum
> -------------------
>
>                 Key: CMIS-252
>                 URL: https://issues.apache.org/jira/browse/CMIS-252
>             Project: Chemistry
>          Issue Type: Wish
>          Components: opencmis-commons
>    Affects Versions: 0.2.0-incubating
>            Reporter: Stephan Klevenz
>            Priority: Minor
>             Fix For: 0.2.0-incubating
>
>
> org.apache.chemistry.opencmis.commons.PropertyIds
> Is there a specific reason to use static const values in the interface mentioned? I would like to propose changing this into an enum class. Are there any objectives?
> Regards,
> Stephan

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