]> source.dussan.org Git - sonarqube.git/commitdiff
Relax visibility of File constructor to allow hacking in SonarLint
authorJulien HENRY <julien.henry@sonarsource.com>
Mon, 11 Jul 2016 15:03:20 +0000 (17:03 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Mon, 11 Jul 2016 15:03:20 +0000 (17:03 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/resources/File.java

index e393a2f185a141ee53ee771fc90fe8bfd10eb04c..8c0e49694be7378d611a6ce1596ea7eca679566b 100644 (file)
@@ -39,18 +39,8 @@ public class File extends Resource {
   private Directory parent;
   private String qualifier = Qualifiers.FILE;
 
-  private final String relativePathFromSourceDir;
-
-  private File() {
+  protected File() {
     // Used by factory method
-    this.relativePathFromSourceDir = null;
-  }
-
-  /**
-   * Internal.
-   */
-  public String relativePathFromSourceDir() {
-    return relativePathFromSourceDir;
   }
 
   /**