diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2017-09-07 17:44:23 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2017-09-15 08:51:08 +0200 |
commit | d3b0387cf01d2d1b496af596b81b8581adcfd2f3 (patch) | |
tree | d68cc11b1005b522c750479ad83795c8c0d391bd /sonar-plugin-api | |
parent | 4e6f8d137897291902b5ce61d51b3cbe0af56742 (diff) | |
download | sonarqube-d3b0387cf01d2d1b496af596b81b8581adcfd2f3.tar.gz sonarqube-d3b0387cf01d2d1b496af596b81b8581adcfd2f3.zip |
SONAR-9651 Deprecate ability to create issues/measures on directories
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/FileSystem.java | 2 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/InputDir.java | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/FileSystem.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/FileSystem.java index 52318045214..aafc4d44454 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/FileSystem.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/FileSystem.java @@ -101,7 +101,9 @@ public interface FileSystem { * @throws IllegalArgumentException is File is null or not a directory. * * @since 4.5 + * @deprecated since 6.6 Ability to report issues or measures on directories will soon be dropped. Report issues on project if needed. */ + @Deprecated @CheckForNull InputDir inputDir(File dir); diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/InputDir.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/InputDir.java index 434fd7d7281..4d18978cbc4 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/InputDir.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/fs/InputDir.java @@ -26,7 +26,9 @@ import java.nio.file.Path; * Layer over {@link java.io.File} for directories. You can access InputDir using {@link FileSystem#inputDir(File)}. * * @since 4.5 + * @deprecated since 6.6 Ability to report issues or measures on directories will soon be dropped. Report issues on project if needed. */ +@Deprecated public interface InputDir extends InputPath { /** |