Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-753

Generate a switch expression for enum's forName()/forValue() methods

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 10.0.0
    • Binding codegen

    Description

      Our current codegen uses an ImmutableMap to lookup members by name and by value.
      With JDK17 we can use switch expressions . This will allow us expose what we are doing directly to Java in a very concise form. We will also reduce runtime overhead, as we will no longer need the maps.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rovarga Robert Varga
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: