From: Duarte Meneses Date: Tue, 26 May 2020 15:57:53 +0000 (-0500) Subject: Add CheckForNull to ScmProvider#revision X-Git-Tag: 8.4.0.35506~106 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dcc32fd76d2cdea831c097ab389a6e2339d5dc15;p=sonarqube.git Add CheckForNull to ScmProvider#revision --- 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")); }