From dcc32fd76d2cdea831c097ab389a6e2339d5dc15 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Tue, 26 May 2020 10:57:53 -0500 Subject: [PATCH] Add CheckForNull to ScmProvider#revision --- .../src/main/java/org/sonar/api/batch/scm/ScmProvider.java | 1 + 1 file changed, 1 insertion(+) 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")); } -- 2.39.5