From fb03a19566ef193e4860fb276824ff315ca5047d Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 5 Mar 2020 11:45:56 -0600 Subject: SONAR-13165 Scanner warns that it wasn't able to detected changed lines on files with lines removed only --- .../src/main/java/org/sonar/api/batch/scm/ScmProvider.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sonar-plugin-api/src') diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java index e7bda351dd3..be44d13eb41 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java @@ -68,8 +68,9 @@ public abstract class ScmProvider { /** * Return a map between paths given as argument and the corresponding line numbers which are new compared to the provided target branch. - * If null is returned or if a path is not included in the map, an imprecise fallback mechanism will be used to detect which lines - * are new (based on SCM dates). + * If nothing is returned for a file, the scanner will consider that the provider was unable to determine changes for that file and it will + * assume that nothing was changed in it. + * If null is returned, an imprecise fallback mechanism will be used to detect which lines are new (based on SCM dates). * * @param files Absolute path of files of interest * @return null if the SCM provider was not able to compute the new lines -- cgit v1.2.3