diff options
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java | 4 |
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(); /** |