From 4fda01fa13ff14cde1960a49ded1b45212c89005 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Mon, 11 Jul 2016 17:03:20 +0200 Subject: [PATCH] Relax visibility of File constructor to allow hacking in SonarLint --- .../src/main/java/org/sonar/api/resources/File.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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 e393a2f185a..8c0e49694be 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; } /** -- 2.39.5