aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-04-27 17:05:35 +0200
committerDavid Gageot <david@gageot.net>2012-04-27 17:05:35 +0200
commitb150482f1f4ea43bc42b324994d1d1e852de6320 (patch)
tree4638118d9a32405ad844c127f38e381d9ef37ae8 /sonar-plugin-api/src/main/java/org/sonar/api/resources/JavaFile.java
parent328e826a6a151128783ee7a3939e206202c6a990 (diff)
downloadsonarqube-b150482f1f4ea43bc42b324994d1d1e852de6320.tar.gz
sonarqube-b150482f1f4ea43bc42b324994d1d1e852de6320.zip
Code cleaning : Add @Override annotations
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.java8
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;