Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-3411

Do proper generics declaration in the ElasticsearchHelper

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: backend
    • Labels:
      None
    • Epic Link:
    • Effort:
      Not defined

      Description

      Context:
       ReportService -> IntelliJ is complaining about ReportDefinitionDto not being ReportDefinitionDto<?>. We also have that for all kind of methods/dto's in our application. To have generic classes not correctly declared can cause problems that are hard to debug (which we already had in the past). We should clean that up.

      AT:

      • it is possible to define a generic class for the ElasticsearchHelper methods to be used for the mapping

      Hint:
      We could think about using the TypeReference class that Jackson uses for the mapping.

        mgm-controller-panel

        This is the controller panel for Smart Panels app

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                johannes.heinemann Johannes Heinemann
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Salesforce