diff options
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java index 634c5c96c20..cd142ae6ce2 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java @@ -105,6 +105,7 @@ public class JavaFile extends Resource<JavaPackage> { /** * {@inheritDoc} */ + @Override public JavaPackage getParent() { if (parent == null) { parent = new JavaPackage(packageKey); @@ -116,6 +117,7 @@ public class JavaFile extends Resource<JavaPackage> { /** * @return null */ + @Override public String getDescription() { return null; } @@ -123,6 +125,7 @@ public class JavaFile extends Resource<JavaPackage> { /** * @return Java */ + @Override public Language getLanguage() { return Java.INSTANCE; } @@ -130,6 +133,7 @@ public class JavaFile extends Resource<JavaPackage> { /** * {@inheritDoc} */ + @Override public String getName() { return filename; } @@ -137,6 +141,7 @@ public class JavaFile extends Resource<JavaPackage> { /** * {@inheritDoc} */ + @Override public String getLongName() { return longName; } @@ -144,6 +149,7 @@ public class JavaFile extends Resource<JavaPackage> { /** * @return SCOPE_ENTITY */ + @Override public String getScope() { return Scopes.FILE; } @@ -151,6 +157,7 @@ public class JavaFile extends Resource<JavaPackage> { /** * @return QUALIFIER_UNIT_TEST_CLASS or QUALIFIER_CLASS depending whether it is a unit test class */ + @Override public String getQualifier() { return unitTest ? Qualifiers.UNIT_TEST_FILE : Qualifiers.CLASS; } @@ -165,6 +172,7 @@ public class JavaFile extends Resource<JavaPackage> { /** * {@inheritDoc} */ + @Override public boolean matchFilePattern(String antPattern) { if (unitTest) { return false; |