aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/batch
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2020-05-26 10:57:53 -0500
committersonartech <sonartech@sonarsource.com>2020-06-11 20:04:56 +0000
commitdcc32fd76d2cdea831c097ab389a6e2339d5dc15 (patch)
treed7605a85ecf5193b43c50d210026c961afdd970e /sonar-plugin-api/src/main/java/org/sonar/api/batch
parentb7d595d1a4e153f72cbba373bf8a06e82f187b2a (diff)
downloadsonarqube-dcc32fd76d2cdea831c097ab389a6e2339d5dc15.tar.gz
sonarqube-dcc32fd76d2cdea831c097ab389a6e2339d5dc15.zip
Add CheckForNull to ScmProvider#revision
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/batch')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java1
1 files changed, 1 insertions, 0 deletions
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 379a3cfddf3..1abad8c7779 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
@@ -113,6 +113,7 @@ public abstract class ScmProvider {
* for example the SHA1 of the current HEAD in a Git branch.
* @since 7.0
*/
+ @CheckForNull
public String revisionId(Path path) {
throw new UnsupportedOperationException(formatUnsupportedMessage("Getting revision id"));
}