Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-1557

FP on UndocumentedApi: public constructors of non-public classes are not public

    Details

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

      Description

      package org.foo;
      
      class A {
        public A() {} // constructor not visible from other package
      
        public int field; // should be documented (visible if public child class)
        public void foo() {}  // should be documented (visible if public child class)
        public class Inner {}   // should be documented (visible if public child class)
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nicolas.peru Nicolas Peru
                Reporter:
                michael.gumowski Michael Gumowski
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: