aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-05-06 16:01:15 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-05-06 16:01:40 +0200
commitf00fee2d78fa9120d549ba43a54ec7cfe0e8f3cf (patch)
tree1eba00c8c0c8c317d7f0fabb797ee20f5d034271 /sonar-plugin-api
parent769198ce18f482f5f7cbf6e1c646817027368a77 (diff)
downloadsonarqube-f00fee2d78fa9120d549ba43a54ec7cfe0e8f3cf.tar.gz
sonarqube-f00fee2d78fa9120d549ba43a54ec7cfe0e8f3cf.zip
Update javadoc of Resource::getLanguage
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java
index cab70e43e6a..89101ba6aa1 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java
@@ -23,6 +23,7 @@ import org.apache.commons.lang.StringUtils;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
+
import java.io.Serializable;
/**
@@ -177,8 +178,9 @@ public abstract class Resource implements Serializable {
public abstract String getDescription();
/**
- * @return the language
+ * @return the language of the resource. Only {@link File}s have a non null value.
*/
+ @CheckForNull
public abstract Language getLanguage();
/**