]> source.dussan.org Git - sonarqube.git/commitdiff
Add CheckForNull to ScmProvider#revision
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Tue, 26 May 2020 15:57:53 +0000 (10:57 -0500)
committersonartech <sonartech@sonarsource.com>
Thu, 11 Jun 2020 20:04:56 +0000 (20:04 +0000)
sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java

index 379a3cfddf30ddcd7929a15e65d765e6d22388d1..1abad8c77791e0e9ff07592a207c2d4c683a4d17 100644 (file)
@@ -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"));
   }