else filter working incorrectly

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Medium
    • won't fix
    • Affects Version/s: None
    • Component/s: Instrumentation
    • None

      Running pmd-3.8 sanity project. Ive added to the report filter="static constructor else catch assert".

      the "if" line is filtered (with message "Filtered by:") when there is an else statement after it.

      eg.

      1 if (o != null)

      { 2 processRule(o); 3 }

      else

      { 4 processRule(data); 5 }

      both lines 1 and 4 are filtered. line 4 has the correct message "Filtered by: else"

            Assignee:
            BrendanA
            Reporter:
            Geoff Crain (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: