diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/File.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/File.java
index <HASH>..<HASH> 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/File.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/File.java
@@ -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;
   }
 
   /**
Relax visibility of File constructor to allow hacking in SonarLint