SonarQube
  1. SonarQube
  2. SONAR-2348

Wrong package of empty Java files

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Empty files have no statements. All lines are commented-out, even the package declaration :

      //package foo;
      //
      //public class Hello {}
      

      For this reason they are stored in the root package, but it's wrong. The package could be guessed. Moreover it would help searching for these files in drilldown pages.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Simon Brandhof
            Reporter:
            Simon Brandhof
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: