Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-3480

Rename fromExternalRepresentation() to of() for enums used in the configuration

    Details

      Description

      The purpose of this change is to be compliant with the MicroProfile config specification.

      Note that, while SmallRye Config supports parse(String), the MP Config specification only mandates the support of parse(CharSequence) so using CharSequence is probably better.

      => We'll use of() because it has precedence over valueOf, which has precedence over parse(), according to the MP spec.

      This will allow to automatically convert the config values to enums.

        Attachments

          Activity

            People

            • Assignee:
              gsmet Guillaume Smet
              Reporter:
              gsmet Guillaume Smet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: