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

Do proper generics declaration in the ElasticsearchHelper

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.1.0
    • None
    • backend
    • None
    • Not defined

      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.

        This is the controller panel for Smart Panels app

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

                Created:
                Updated:
                Resolved: