Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-7528

Avoid casting to unnecessary interfaces (Fix the secondary super cache problem in Drools)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • core engine
    • None

      It’s possible to check for abstract classes instead of the interface for LeftTupleSink, RightTupleSink and Memory, hence avoiding type polluting and interface instanceof.
      When there is not a common parent, for example here, a series of if with an instanceof against different abstract classes is put instead.

      The description of the problem is here

              lmolteni@redhat.com Luca Molteni
              lmolteni@redhat.com Luca Molteni
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: