Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-8166

Incorrect use of generic types in tests

XMLWordPrintable

      On various places in our test-suite we are using TestEmbeddedEngine and related classes as raw types (including implementations of DebeziumEngine used for test) instead of wildcard generic when we don't care about the type parameter.

      This will lead to problem in case of any method on DebeziumEngine returning generic types (e.g. List<String>) as the use of raw types instructs compiler to discard all generic information for given class.

            vjuranek@redhat.com Vojtech Juranek
            jcechace@redhat.com Jakub Čecháček
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: