chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <>
Subject [jira] Commented: (CMIS-252) PropertyIds as Enum
Date Thu, 23 Sep 2010 15:32:33 GMT


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:
>             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.

View raw message