Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-3712

Incorrect computation of metric "statements" in some cases

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Component/s: None
    • Labels:
      None

      Description

      Here is such cases:

      public class Example {
        public Example() {
          super(); // call of superclass constructor not counted
        }
      
        public synchronized void doSomething() { // synchronized method counted, however should not
          ; // empty statement not counted
          new Object() {
            int field; // field counted, however should not
          };
        }
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              godin OLD - Evgeny Mandrikov
              Reporter:
              godin OLD - Evgeny Mandrikov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: